Recompile book.css

This commit is contained in:
Pascal Hertleif 2015-12-30 13:09:11 +01:00
parent 1d3f526273
commit b035d2a5e0
1 changed files with 379 additions and 490 deletions

View File

@ -1,160 +1,35 @@
html, html, body {
body {
font-family: "Open Sans", sans-serif; font-family: "Open Sans", sans-serif;
color: #333; color: #333; }
}
.left { .left {
float: left; float: left; }
}
.right { .right {
float: right; float: right; }
}
.hidden { .hidden {
display: none; display: none; }
}
h2, h2, h3 {
h3 { margin-top: 2.5em; }
margin-top: 2.5em;
}
.sidebar {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 300px;
overflow-y: auto;
padding: 10px 10px;
font-size: 0.875em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-overflow-scrolling: touch;
-webkit-transition: left 0.5s;
-moz-transition: left 0.5s;
-o-transition: left 0.5s;
-ms-transition: left 0.5s;
transition: left 0.5s;
}
@media only screen and (max-width: 1060px) {
.sidebar {
left: -300px;
}
}
.sidebar code {
line-height: 2em;
}
.sidebar-hidden .sidebar {
left: -300px;
}
.sidebar-visible .sidebar {
left: 0;
}
.chapter {
list-style: none outside none;
padding-left: 0;
line-height: 1.9em;
}
.chapter li a {
padding: 5px 0;
text-decoration: none;
}
.chapter li a:hover {
text-decoration: none;
}
.chapter .spacer {
width: 100%;
height: 3px;
margin: 10px 0px;
}
.section {
list-style: none outside none;
padding-left: 20px;
line-height: 2.5em;
}
.section li {
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.page-wrapper {
position: absolute;
overflow-y: auto;
left: 315px;
right: 0;
top: 0;
bottom: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-overflow-scrolling: touch;
min-height: 100%;
-webkit-transition: left 0.5s;
-moz-transition: left 0.5s;
-o-transition: left 0.5s;
-ms-transition: left 0.5s;
transition: left 0.5s;
}
@media only screen and (max-width: 1060px) {
.page-wrapper {
left: 15px;
padding-right: 15px;
}
}
.sidebar-hidden .page-wrapper {
left: 15px;
}
.sidebar-visible .page-wrapper {
left: 315px;
}
.page {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
padding-right: 15px;
overflow-y: auto;
}
.content {
margin-left: auto;
margin-right: auto;
max-width: 750px;
padding-bottom: 50px;
}
.content a {
text-decoration: none;
}
.content a:hover {
text-decoration: underline;
}
.content img {
max-width: 100%;
}
.menu-bar { .menu-bar {
position: relative; position: relative;
height: 50px; height: 50px; }
} .menu-bar i {
.menu-bar i { position: relative;
position: relative; margin: 0 10px;
margin: 0 10px; z-index: 10;
z-index: 10; line-height: 50px;
line-height: 50px; transition: color 0.5s; }
-webkit-transition: color 0.5s; .menu-bar i:hover {
-moz-transition: color 0.5s; cursor: pointer; }
-o-transition: color 0.5s; .menu-bar .left-buttons {
-ms-transition: color 0.5s; float: left; }
transition: color 0.5s; .menu-bar .right-buttons {
} float: right; }
.menu-bar i:hover {
cursor: pointer;
}
.menu-bar .left-buttons {
float: left;
}
.menu-bar .right-buttons {
float: right;
}
.menu-title { .menu-title {
display: inline-block; display: inline-block;
font-weight: 200; font-weight: 200;
@ -168,386 +43,400 @@ h3 {
text-align: center; text-align: center;
margin: 0; margin: 0;
opacity: 0; opacity: 0;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; transition: opacity 0.5s ease-in-out; }
filter: alpha(opacity=0);
-webkit-transition: opacity 0.5s ease-in-out;
-moz-transition: opacity 0.5s ease-in-out;
-o-transition: opacity 0.5s ease-in-out;
-ms-transition: opacity 0.5s ease-in-out;
transition: opacity 0.5s ease-in-out;
}
.menu-bar:hover .menu-title { .menu-bar:hover .menu-title {
opacity: 1; opacity: 1; }
-ms-filter: none;
filter: none;
}
.nav-chapters { .nav-chapters {
font-size: 2.5em; font-size: 2.5em;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
position: absolute; position: absolute;
top: 50px /* Height of menu-bar */; top: 50px;
/* Height of menu-bar */
bottom: 0; bottom: 0;
margin: 0; margin: 0;
max-width: 150px; max-width: 150px;
min-width: 90px; min-width: 90px;
display: -webkit-box;
display: -moz-box;
display: -webkit-flex;
display: -ms-flexbox;
display: box;
display: flex; display: flex;
-webkit-box-pack: center;
-moz-box-pack: center;
-o-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center; justify-content: center;
-ms-flex-line-pack: center;
-webkit-align-content: center;
align-content: center; align-content: center;
-webkit-box-orient: vertical;
-moz-box-orient: vertical;
-o-box-orient: vertical;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column; flex-direction: column;
-webkit-transition: color 0.5s; transition: color 0.5s; }
-moz-transition: color 0.5s;
-o-transition: color 0.5s;
-ms-transition: color 0.5s;
transition: color 0.5s;
}
.mobile-nav-chapters { .mobile-nav-chapters {
display: none; display: none; }
}
.nav-chapters:hover { .nav-chapters:hover {
text-decoration: none; text-decoration: none; }
}
.previous { .previous {
left: 0; left: 0; }
}
.next { .next {
right: 15px; right: 15px; }
}
.page-wrapper {
position: absolute;
overflow-y: auto;
left: 315px;
right: 0;
top: 0;
bottom: 0;
box-sizing: border-box;
-webkit-overflow-scrolling: touch;
min-height: 100%;
transition: left 0.5s; }
@media only screen and (max-width: 1060px) {
.page-wrapper {
left: 15px;
padding-right: 15px; } }
.sidebar-hidden .page-wrapper {
left: 15px; }
.sidebar-visible .page-wrapper {
left: 315px; }
.page {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
padding-right: 15px;
overflow-y: auto; }
.content {
margin-left: auto;
margin-right: auto;
max-width: 750px;
padding-bottom: 50px; }
.content a {
text-decoration: none; }
.content a:hover {
text-decoration: underline; }
.content img {
max-width: 100%; }
@media only print {
.sidebar,
.menu-bar,
.nav-chapters,
.mobile-nav-chapters {
display: none; }
.page-wrapper {
left: 0; }
.content {
max-width: 100%; }
code {
background-color: #666666;
border-radius: 5px;
/* Force background to be printed in Chrome */
-webkit-print-color-adjust: exact; }
a, a:visited, a:active, a:hover {
color: #4183c4;
text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
page-break-inside: avoid;
page-break-after: avoid;
/*break-after: avoid*/ }
pre, code {
page-break-inside: avoid;
white-space: pre-wrap;
/* CSS 3 */
white-space: -moz-pre-wrap;
/* Mozilla, since 1999 */
white-space: -pre-wrap;
/* Opera 4-6 */
white-space: -o-pre-wrap;
/* Opera 7 */
word-wrap: break-word;
/* Internet Explorer 5.5+ */ } }
.sidebar {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 300px;
overflow-y: auto;
padding: 10px 10px;
font-size: 0.875em;
box-sizing: border-box;
-webkit-overflow-scrolling: touch;
transition: ease-out left 0.5s; }
@media only screen and (max-width: 1060px) {
.sidebar {
left: -300px; } }
.sidebar code {
line-height: 2em; }
.sidebar-hidden .sidebar {
left: -300px; }
.sidebar-visible .sidebar {
left: 0; }
.chapter {
list-style: none outside none;
padding-left: 0;
line-height: 1.9em; }
.chapter li a {
padding: 5px 0;
text-decoration: none; }
.chapter li a:hover {
text-decoration: none; }
.chapter .spacer {
width: 100%;
height: 3px;
margin: 10px 0px; }
.section {
list-style: none outside none;
padding-left: 20px;
line-height: 2.5em; }
.section li {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap; }
.theme-popup { .theme-popup {
position: fixed; position: fixed;
left: -40px; left: -40px;
-webkit-border-radius: 4px;
border-radius: 4px; border-radius: 4px;
font-size: 0.7em; font-size: 0.7em; }
} .theme-popup .theme {
.theme-popup .theme { margin: 0;
margin: 0; padding: 2px 10px;
padding: 2px 10px; line-height: 25px;
line-height: 25px; white-space: nowrap; }
white-space: nowrap;
}
@media only screen and (max-width: 1250px) { @media only screen and (max-width: 1250px) {
.nav-chapters { .nav-chapters {
display: none; display: none; }
}
.mobile-nav-chapters { .mobile-nav-chapters {
font-size: 2.5em; font-size: 2.5em;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
max-width: 150px; max-width: 150px;
min-width: 90px; min-width: 90px;
-webkit-box-pack: center;
-moz-box-pack: center;
-o-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center; justify-content: center;
-ms-flex-line-pack: center;
-webkit-align-content: center;
align-content: center; align-content: center;
position: relative; position: relative;
display: inline-block; display: inline-block;
margin-bottom: 50px; margin-bottom: 50px;
-webkit-border-radius: 5px; border-radius: 5px; }
border-radius: 5px;
}
.next { .next {
float: right; float: right; }
}
.previous { .previous {
float: left; float: left; } }
}
}
.light { .light {
/* Inline code */ /* Inline code */
color: #333; color: #333333;
background-color: #fff; background-color: #ffffff; }
} .light :not( pre) > .hljs {
.light :not(pre) > .hljs { display: inline-block;
display: inline-block; vertical-align: middle;
vertical-align: middle; padding: 0.1em 0.3em;
padding: 0.1em 0.3em; border-radius: 3px; }
-webkit-border-radius: 3px; .light pre {
border-radius: 3px; position: relative; }
} .light pre > i {
.light pre { position: absolute;
position: relative; right: 5px;
} top: 5px;
.light pre > i { color: #364149;
position: absolute; cursor: pointer; }
right: 5px; .light pre > i :hover {
top: 5px; color: #008cff; }
color: #364149; .light .sidebar {
cursor: pointer; background-color: #fafafa;
} color: #364149; }
.light pre > i :hover { .light .chapter li {
color: #008cff; color: #aaaaaa; }
} .light .chapter li a {
.light .sidebar { color: #364149; }
background-color: #fafafa; .light .chapter li .active,
color: #364149; .light .chapter li a:hover {
} /* Animate color change */
.light .chapter li { color: #008cff; }
color: #aaa; .light .chapter .spacer {
} background-color: #f4f4f4; }
.light .chapter li a { .light .menu-bar,
color: #364149; .light .nav-chapters,
} .light .mobile-nav-chapters {
.light .chapter li .active, color: #cccccc; }
.light .chapter li a:hover { .light .menu-bar i:hover,
/* Animate color change */ .light .nav-chapters:hover,
color: #008cff; .light .mobile-nav-chapters i:hover {
} color: #333333; }
.light .chapter .spacer { .light .mobile-nav-chapters i:hover {
background-color: #f4f4f4; color: #364149; }
} .light .mobile-nav-chapters {
.light .menu-bar, background-color: #fafafa; }
.light .nav-chapters, .light .content a:link {
.light .mobile-nav-chapters { color: #4183c4; }
color: #ccc; .light .theme-popup {
} background: #fafafa;
.light .menu-bar i:hover, border: 1px solid #cccccc; }
.light .nav-chapters:hover, .light .theme-popup .theme:hover {
.light .mobile-nav-chapters i:hover { background-color: #e6e6e6; }
color: #333;
}
.light .mobile-nav-chapters i:hover {
color: #364149;
}
.light .mobile-nav-chapters {
background-color: #fafafa;
}
.light .content a:link {
color: #4183c4;
}
.light .theme-popup {
background: #fafafa;
border: 1px solid #ccc;
}
.light .theme-popup .theme:hover {
background-color: #e6e6e6;
}
.coal { .coal {
/* Inline code */ /* Inline code */
color: #98a3ad; color: #98a3ad;
background-color: #141617; background-color: #141617; }
} .coal :not( pre) > .hljs {
.coal :not(pre) > .hljs { display: inline-block;
display: inline-block; vertical-align: middle;
vertical-align: middle; padding: 0.1em 0.3em;
padding: 0.1em 0.3em; border-radius: 3px; }
-webkit-border-radius: 3px; .coal pre {
border-radius: 3px; position: relative; }
} .coal pre > i {
.coal pre { position: absolute;
position: relative; right: 5px;
} top: 5px;
.coal pre > i { color: #a1adb8;
position: absolute; cursor: pointer; }
right: 5px; .coal pre > i :hover {
top: 5px; color: #3473ad; }
color: #a1adb8; .coal .sidebar {
cursor: pointer; background-color: #292c2f;
} color: #a1adb8; }
.coal pre > i :hover { .coal .chapter li {
color: #3473ad; color: #505254; }
} .coal .chapter li a {
.coal .sidebar { color: #a1adb8; }
background-color: #292c2f; .coal .chapter li .active,
color: #a1adb8; .coal .chapter li a:hover {
} /* Animate color change */
.coal .chapter li { color: #3473ad; }
color: #505254; .coal .chapter .spacer {
} background-color: #393939; }
.coal .chapter li a { .coal .menu-bar,
color: #a1adb8; .coal .nav-chapters,
} .coal .mobile-nav-chapters {
.coal .chapter li .active, color: #43484d; }
.coal .chapter li a:hover { .coal .menu-bar i:hover,
/* Animate color change */ .coal .nav-chapters:hover,
color: #3473ad; .coal .mobile-nav-chapters i:hover {
} color: #b3c0cc; }
.coal .chapter .spacer { .coal .mobile-nav-chapters i:hover {
background-color: #393939; color: #a1adb8; }
} .coal .mobile-nav-chapters {
.coal .menu-bar, background-color: #292c2f; }
.coal .nav-chapters, .coal .content a:link {
.coal .mobile-nav-chapters { color: #2b79a2; }
color: #43484d; .coal .theme-popup {
} background: #141617;
.coal .menu-bar i:hover, border: 1px solid #43484d; }
.coal .nav-chapters:hover, .coal .theme-popup .theme:hover {
.coal .mobile-nav-chapters i:hover { background-color: #1f2124; }
color: #b3c0cc;
}
.coal .mobile-nav-chapters i:hover {
color: #a1adb8;
}
.coal .mobile-nav-chapters {
background-color: #292c2f;
}
.coal .content a:link {
color: #2b79a2;
}
.coal .theme-popup {
background: #141617;
border: 1px solid #43484d;
}
.coal .theme-popup .theme:hover {
background-color: #1f2124;
}
.navy { .navy {
/* Inline code */ /* Inline code */
color: #bcbdd0; color: #bcbdd0;
background-color: #161923; background-color: #161923; }
} .navy :not( pre) > .hljs {
.navy :not(pre) > .hljs { display: inline-block;
display: inline-block; vertical-align: middle;
vertical-align: middle; padding: 0.1em 0.3em;
padding: 0.1em 0.3em; border-radius: 3px; }
-webkit-border-radius: 3px; .navy pre {
border-radius: 3px; position: relative; }
} .navy pre > i {
.navy pre { position: absolute;
position: relative; right: 5px;
} top: 5px;
.navy pre > i { color: #c8c9db;
position: absolute; cursor: pointer; }
right: 5px; .navy pre > i :hover {
top: 5px; color: #2b79a2; }
color: #c8c9db; .navy .sidebar {
cursor: pointer; background-color: #282d3f;
} color: #c8c9db; }
.navy pre > i :hover { .navy .chapter li {
color: #2b79a2; color: #505274; }
} .navy .chapter li a {
.navy .sidebar { color: #c8c9db; }
background-color: #282d3f; .navy .chapter li .active,
color: #c8c9db; .navy .chapter li a:hover {
} /* Animate color change */
.navy .chapter li { color: #2b79a2; }
color: #505274; .navy .chapter .spacer {
} background-color: #2d334f; }
.navy .chapter li a { .navy .menu-bar,
color: #c8c9db; .navy .nav-chapters,
} .navy .mobile-nav-chapters {
.navy .chapter li .active, color: #737480; }
.navy .chapter li a:hover { .navy .menu-bar i:hover,
/* Animate color change */ .navy .nav-chapters:hover,
color: #2b79a2; .navy .mobile-nav-chapters i:hover {
} color: #b7b9cc; }
.navy .chapter .spacer { .navy .mobile-nav-chapters i:hover {
background-color: #2d334f; color: #c8c9db; }
} .navy .mobile-nav-chapters {
.navy .menu-bar, background-color: #282d3f; }
.navy .nav-chapters, .navy .content a:link {
.navy .mobile-nav-chapters { color: #2b79a2; }
color: #737480; .navy .theme-popup {
} background: #161923;
.navy .menu-bar i:hover, border: 1px solid #737480; }
.navy .nav-chapters:hover, .navy .theme-popup .theme:hover {
.navy .mobile-nav-chapters i:hover { background-color: #282e40; }
color: #b7b9cc;
}
.navy .mobile-nav-chapters i:hover {
color: #c8c9db;
}
.navy .mobile-nav-chapters {
background-color: #282d3f;
}
.navy .content a:link {
color: #2b79a2;
}
.navy .theme-popup {
background: #161923;
border: 1px solid #737480;
}
.navy .theme-popup .theme:hover {
background-color: #282e40;
}
.rust { .rust {
/* Inline code */ /* Inline code */
color: #262625; color: #262625;
background-color: #e1e1db; background-color: #e1e1db; }
} .rust :not( pre) > .hljs {
.rust :not(pre) > .hljs { display: inline-block;
display: inline-block; vertical-align: middle;
vertical-align: middle; padding: 0.1em 0.3em;
padding: 0.1em 0.3em; border-radius: 3px; }
-webkit-border-radius: 3px; .rust pre {
border-radius: 3px; position: relative; }
} .rust pre > i {
.rust pre { position: absolute;
position: relative; right: 5px;
} top: 5px;
.rust pre > i { color: #c8c9db;
position: absolute; cursor: pointer; }
right: 5px; .rust pre > i :hover {
top: 5px; color: #e69f67; }
color: #c8c9db; .rust .sidebar {
cursor: pointer; background-color: #3b2e2a;
} color: #c8c9db; }
.rust pre > i :hover { .rust .chapter li {
color: #e69f67; color: #505254; }
} .rust .chapter li a {
.rust .sidebar { color: #c8c9db; }
background-color: #3b2e2a; .rust .chapter li .active,
color: #c8c9db; .rust .chapter li a:hover {
} /* Animate color change */
.rust .chapter li { color: #e69f67; }
color: #505254; .rust .chapter .spacer {
} background-color: #45373a; }
.rust .chapter li a { .rust .menu-bar,
color: #c8c9db; .rust .nav-chapters,
} .rust .mobile-nav-chapters {
.rust .chapter li .active, color: #737480; }
.rust .chapter li a:hover { .rust .menu-bar i:hover,
/* Animate color change */ .rust .nav-chapters:hover,
color: #e69f67; .rust .mobile-nav-chapters i:hover {
} color: #262625; }
.rust .chapter .spacer { .rust .mobile-nav-chapters i:hover {
background-color: #45373a; color: #c8c9db; }
} .rust .mobile-nav-chapters {
.rust .menu-bar, background-color: #3b2e2a; }
.rust .nav-chapters, .rust .content a:link {
.rust .mobile-nav-chapters { color: #2b79a2; }
color: #737480; .rust .theme-popup {
} background: #e1e1db;
.rust .menu-bar i:hover, border: 1px solid #b38f6b; }
.rust .nav-chapters:hover, .rust .theme-popup .theme:hover {
.rust .mobile-nav-chapters i:hover { background-color: #99908a; }
color: #262625;
}
.rust .mobile-nav-chapters i:hover {
color: #c8c9db;
}
.rust .mobile-nav-chapters {
background-color: #3b2e2a;
}
.rust .content a:link {
color: #2b79a2;
}
.rust .theme-popup {
background: #e1e1db;
border: 1px solid #b38f6b;
}
.rust .theme-popup .theme:hover {
background-color: #99908a;
}