130 lines
No EOL
1.9 KiB
SCSS
130 lines
No EOL
1.9 KiB
SCSS
@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 {
|
|
color: $gray-800;
|
|
line-height: $body-line-height;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: $color-link;
|
|
}
|
|
|
|
.book-brand {
|
|
padding: 0 $padding-16;
|
|
font-weight: 300;
|
|
}
|
|
|
|
// Navigation styles
|
|
.book-nav {
|
|
flex-grow: 0;
|
|
width: $nav-menu-width;
|
|
|
|
nav {
|
|
position: fixed;
|
|
height: 100%;
|
|
width: $nav-menu-width;
|
|
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
|
|
font-size: $font-size-14;
|
|
background: $gray-100;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding-left: $padding-16;
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
color: $gray-800;
|
|
padding: $padding-4 $padding-16;
|
|
text-transform: capitalize;
|
|
|
|
&[href]:hover {
|
|
color: $gray-600;
|
|
}
|
|
|
|
&.active {
|
|
color: $color-link;
|
|
}
|
|
}
|
|
|
|
// class used for sections with bookTopSection: true
|
|
.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
|
|
}
|
|
}
|
|
|
|
// Table of Contents styles
|
|
.book-toc {
|
|
flex-grow: 0;
|
|
width: $toc-menu-width;
|
|
|
|
nav {
|
|
position: fixed;
|
|
height: 100%;
|
|
width: $toc-menu-width;
|
|
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
|
|
font-size: $font-size-12;
|
|
|
|
> ul {
|
|
margin: $size-48 0;
|
|
padding: 0 $padding-16;
|
|
border-left: $padding-1 solid $gray-200;
|
|
}
|
|
}
|
|
|
|
ul {
|
|
padding-left: $padding-4;
|
|
list-style: none;
|
|
}
|
|
|
|
a {
|
|
line-height: 1.25;
|
|
padding: $padding-4 0;
|
|
display: block;
|
|
|
|
img {
|
|
max-height: $font-size-16;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Print styles
|
|
@media print {
|
|
|
|
} |