2018-09-05 16:22:04 +02:00
|
|
|
@import 'variables';
|
|
|
|
@import 'pure-extension';
|
|
|
|
@import 'markdown';
|
|
|
|
|
|
|
|
html {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
html, body {
|
|
|
|
width: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
min-width: $body-min-width;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2018-09-13 18:07:55 +02:00
|
|
|
color: $body-font-color;
|
|
|
|
background: $body-background;
|
2018-09-05 16:22:04 +02:00
|
|
|
line-height: $body-line-height;
|
|
|
|
}
|
|
|
|
|
2018-09-11 16:51:27 +02:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: $color-link;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.book-brand {
|
|
|
|
padding: 0 $padding-16;
|
2018-09-18 01:35:54 +02:00
|
|
|
margin-bottom: $padding-8;
|
2018-09-13 18:07:55 +02:00
|
|
|
font-weight: 400;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $body-font-color;
|
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2018-09-11 16:51:27 +02:00
|
|
|
// Navigation styles
|
2018-09-05 16:22:04 +02:00
|
|
|
.book-nav {
|
|
|
|
flex-grow: 0;
|
2018-09-11 16:51:27 +02:00
|
|
|
width: $nav-menu-width;
|
2018-09-05 16:22:04 +02:00
|
|
|
|
|
|
|
nav {
|
|
|
|
position: fixed;
|
|
|
|
height: 100%;
|
|
|
|
width: $nav-menu-width;
|
|
|
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
font-size: $font-size-14;
|
2018-09-13 18:07:55 +02:00
|
|
|
background: $nav-background;
|
2018-09-11 16:51:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
2018-09-17 18:29:36 +02:00
|
|
|
margin: 0;
|
2018-09-05 16:22:04 +02:00
|
|
|
padding-left: $padding-16;
|
2018-09-11 16:51:27 +02:00
|
|
|
|
2018-09-17 18:29:36 +02:00
|
|
|
li {
|
|
|
|
line-height: $padding-16 * 2;
|
|
|
|
}
|
|
|
|
|
2018-09-13 18:07:55 +02:00
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
color: $nav-link-color;
|
|
|
|
text-transform: capitalize;
|
|
|
|
|
|
|
|
&[href]:hover {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: $color-link;
|
|
|
|
}
|
2018-09-11 16:51:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-18 01:35:54 +02:00
|
|
|
// class used for sections with bookRootSection: true
|
2018-09-11 16:51:27 +02:00
|
|
|
.book-nav-section {
|
|
|
|
margin-bottom: $padding-16;
|
|
|
|
> a { font-weight: 600; }
|
|
|
|
> ul { padding-left: 0; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-content {
|
|
|
|
max-width: $content-max-width;
|
|
|
|
min-width: $content-min-width;
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
.book-page {
|
|
|
|
padding: $padding-16 $size-48;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:visited {
|
|
|
|
color: $color-visited-link
|
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2018-09-11 16:51:27 +02:00
|
|
|
// Table of Contents styles
|
2018-09-05 16:22:04 +02:00
|
|
|
.book-toc {
|
|
|
|
flex-grow: 0;
|
|
|
|
width: $toc-menu-width;
|
|
|
|
|
|
|
|
nav {
|
|
|
|
position: fixed;
|
|
|
|
height: 100%;
|
|
|
|
width: $toc-menu-width;
|
|
|
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
2018-09-11 16:51:27 +02:00
|
|
|
font-size: $font-size-12;
|
|
|
|
|
2018-09-05 16:22:04 +02:00
|
|
|
> ul {
|
|
|
|
margin: $size-48 0;
|
2018-09-13 14:54:04 +02:00
|
|
|
padding: 0 $padding-8;
|
2018-09-05 16:22:04 +02:00
|
|
|
border-left: $padding-1 solid $gray-200;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2018-09-13 14:54:04 +02:00
|
|
|
padding-left: $padding-8;
|
2018-09-05 16:22:04 +02:00
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
line-height: 1.25;
|
|
|
|
padding: $padding-4 0;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
img {
|
|
|
|
max-height: $font-size-16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Print styles
|
|
|
|
@media print {
|
2018-09-13 18:07:55 +02:00
|
|
|
.book-nav, .book-toc {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|