提交 9ec395da 编写于 作者: J Jost Schmithals

tab indentation

上级 47e43962
@font-face { @font-face {
font-family: 'inconsolata'; font-family: 'inconsolata';
src: url('files/inconsolata.woff') format('woff'); src: url('files/inconsolata.woff') format('woff');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
*{ *{
box-sizing: border-box; box-sizing: border-box;
} }
html { html {
height: 100%; height: 100%;
} }
body { body {
background-color: #ffffff; background-color: #ffffff;
margin: 0px; margin: 0px;
height: 100%; height: 100%;
color: #555; color: #555;
font-family: 'inconsolata'; font-family: 'inconsolata';
font-size: 15px; font-size: 15px;
line-height: 18px; line-height: 18px;
overflow: hidden; overflow: hidden;
} }
h1 { h1 {
margin-top: 30px; margin-top: 30px;
margin-bottom: 40px; margin-bottom: 40px;
margin-left: 20px; margin-left: 20px;
font-size: 25px; font-size: 25px;
font-weight: normal; font-weight: normal;
} }
h2 { h2 {
color: #454545; color: #454545;
font-size: 18px; font-size: 18px;
font-weight: normal; font-weight: normal;
margin-top: 20px; margin-top: 20px;
margin-left: 20px; margin-left: 20px;
} }
h3 { h3 {
color: #666; color: #666;
font-size: 16px; font-size: 16px;
font-weight: normal; font-weight: normal;
margin-top: 20px; margin-top: 20px;
margin-left: 20px; margin-left: 20px;
} }
a { a {
color: #2194CE; color: #2194CE;
text-decoration: none; text-decoration: none;
} }
#panel { #panel {
position: fixed; position: fixed;
left: 0px; left: 0px;
width: 260px; width: 260px;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
background: #fafafa; background: #fafafa;
} }
#panel ul { #panel ul {
list-style-type: none; list-style-type: none;
padding: 0px; padding: 0px;
margin-left: 20px; margin-left: 20px;
} }
iframe { iframe {
position: absolute; position: absolute;
border: 0px; border: 0px;
left: 260px; left: 260px;
width: calc(100% - 260px); width: calc(100% - 260px);
height: 100%; height: 100%;
overflow: auto; overflow: auto;
} }
.filterBlock{ .filterBlock{
margin: 20px; margin: 20px;
position: relative; position: relative;
} }
.filterBlock p { .filterBlock p {
margin: 0; margin: 0;
} }
#filterInput { #filterInput {
width: 100%; width: 100%;
padding: 5px; padding: 5px;
font-family: inherit; font-family: inherit;
font-size: 15px; font-size: 15px;
outline: none; outline: none;
border: 1px solid #dedede; border: 1px solid #dedede;
} }
#filterInput:focus{ #filterInput:focus{
border: 1px solid #2194CE; border: 1px solid #2194CE;
} }
#clearFilterButton { #clearFilterButton {
position: absolute; position: absolute;
right: 6px; right: 6px;
top: 50%; top: 50%;
margin-top: -8px; margin-top: -8px;
width: 16px; width: 16px;
height: 16px; height: 16px;
font-size: 14px; font-size: 14px;
color: grey; color: grey;
text-align: center; text-align: center;
line-height: 0; line-height: 0;
padding-top: 7px; padding-top: 7px;
opacity: .5; opacity: .5;
} }
#clearFilterButton:hover { #clearFilterButton:hover {
opacity: 1; opacity: 1;
} }
.hidden { .hidden {
display: none; display: none;
} }
#panel li b { #panel li b {
font-weight: bold; font-weight: bold;
} }
/* mobile */ /* mobile */
#expandButton { #expandButton {
display: none; display: none;
position: absolute; position: absolute;
right: 20px; right: 20px;
top: 12px; top: 12px;
width: 32px; width: 32px;
height: 32px; height: 32px;
} }
#expandButton span { #expandButton span {
height: 2px; height: 2px;
background-color: #2194CE; background-color: #2194CE;
width: 16px; width: 16px;
position: absolute; position: absolute;
left: 8px; left: 8px;
top: 10px; top: 10px;
} }
#expandButton span:nth-child(1) { #expandButton span:nth-child(1) {
top: 16px; top: 16px;
} }
#expandButton span:nth-child(2) { #expandButton span:nth-child(2) {
top: 22px; top: 22px;
} }
@media all and ( max-width: 640px ) { @media all and ( max-width: 640px ) {
h1{ h1{
margin-top: 20px; margin-top: 20px;
margin-bottom: 20px; margin-bottom: 20px;
} }
#panel{ #panel{
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
height: 480px; height: 480px;
width: 100%; width: 100%;
right: 0; right: 0;
z-index: 100; z-index: 100;
overflow: hidden; overflow: hidden;
border-bottom: 1px solid #dedede; border-bottom: 1px solid #dedede;
} }
#navigation{ #navigation{
position: absolute; position: absolute;
left: 0; left: 0;
top: 90px; top: 90px;
right: 0; right: 0;
bottom: 0; bottom: 0;
font-size: 17px; font-size: 17px;
line-height: 22px; line-height: 22px;
overflow: auto; overflow: auto;
} }
iframe{ iframe{
position: absolute; position: absolute;
left: 0; left: 0;
top: 56px; top: 56px;
width: 100%; width: 100%;
height: calc(100% - 56px); height: calc(100% - 56px);
} }
#expandButton{ #expandButton{
display: block; display: block;
} }
#panel.collapsed{ #panel.collapsed{
height: 56px; height: 56px;
} }
} }
此差异已折叠。
此差异已折叠。
...@@ -17,8 +17,8 @@ body { ...@@ -17,8 +17,8 @@ body {
a { a {
color: #1184CE; color: #1184CE;
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }
h1 { h1 {
...@@ -107,8 +107,8 @@ strong { ...@@ -107,8 +107,8 @@ strong {
} }
#button:hover { #button:hover {
cursor: pointer; cursor: pointer;
opacity: 1; opacity: 1;
} }
a.permalink { a.permalink {
......
if ( !window.frameElement ) { if ( !window.frameElement ) {
// If the page is not yet displayed as an iframe of the index page (navigation panel/working links), // If the page is not yet displayed as an iframe of the index page (navigation panel/working links),
// redirect to the index page (using the current URL without extension as the new fragment). // redirect to the index page (using the current URL without extension as the new fragment).
// If this URL itself has a fragment, append it with a dot (since '#' in an URL fragment is not allowed). // If this URL itself has a fragment, append it with a dot (since '#' in an URL fragment is not allowed).
var href = window.location.href; var href = window.location.href;
var splitIndex = href.lastIndexOf( '/docs/' ) + 6; var splitIndex = href.lastIndexOf( '/docs/' ) + 6;
var docsBaseURL = href.substr( 0, splitIndex ); var docsBaseURL = href.substr( 0, splitIndex );
var hash = window.location.hash; var hash = window.location.hash;
if ( hash !== '' ) { if ( hash !== '' ) {
href = href.replace( hash, '' ); href = href.replace( hash, '' );
hash = hash.replace( '#', '.' ); hash = hash.replace( '#', '.' );
} }
var pathSnippet = href.slice( splitIndex, -5 ); var pathSnippet = href.slice( splitIndex, -5 );
window.location.replace( docsBaseURL + '#' + pathSnippet + hash ); window.location.replace( docsBaseURL + '#' + pathSnippet + hash );
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册