2019-10-08 17:03:40 +02:00
|
|
|
html {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
letter-spacing: 0.33px;
|
|
|
|
scroll-behavior: smooth;
|
2020-02-12 23:31:58 +01:00
|
|
|
touch-action: manipulation;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
html,
|
|
|
|
body {
|
|
|
|
min-width: $body-min-width;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
color: $body-font-color;
|
|
|
|
background: $body-background;
|
|
|
|
|
|
|
|
font-weight: $body-font-weight;
|
|
|
|
|
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
* {
|
|
|
|
box-sizing: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5 {
|
|
|
|
font-weight: $body-font-weight;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: $color-link;
|
|
|
|
|
|
|
|
&:visited {
|
|
|
|
color: $color-visited-link;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
|
|
|
|
|
|
|
aside nav ul {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
padding-left: $padding-16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.pagination {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
list-style-type: none;
|
|
|
|
|
|
|
|
.page-item a {
|
|
|
|
padding: $padding-16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
max-width: $container-max-width;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
2019-12-09 11:05:49 +01:00
|
|
|
.book-icon {
|
|
|
|
filter: $icon-filter;
|
|
|
|
}
|
|
|
|
|
2019-10-08 17:03:40 +02:00
|
|
|
.book-brand {
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: 1.5em;
|
|
|
|
width: auto;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-right: $padding-8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-menu {
|
|
|
|
flex: 0 0 $menu-width;
|
|
|
|
font-size: $font-size-14;
|
|
|
|
|
|
|
|
nav {
|
|
|
|
width: $menu-width;
|
|
|
|
padding: $padding-16;
|
|
|
|
|
|
|
|
@include fixed;
|
|
|
|
}
|
|
|
|
|
2019-10-27 12:33:14 +01:00
|
|
|
a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.active {
|
|
|
|
color: $color-link;
|
|
|
|
}
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.book-section-flat {
|
|
|
|
margin-bottom: $padding-16 * 2;
|
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: $padding-16 * 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
> a,
|
|
|
|
> span {
|
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-page {
|
|
|
|
min-width: $body-min-width;
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: $padding-16;
|
|
|
|
}
|
|
|
|
|
2019-12-14 13:38:27 +01:00
|
|
|
.book-post {
|
2019-12-19 17:22:12 +01:00
|
|
|
margin-bottom: $padding-16 * 3;
|
2019-12-14 13:38:27 +01:00
|
|
|
}
|
|
|
|
|
2019-10-08 17:03:40 +02:00
|
|
|
.book-header {
|
|
|
|
display: none;
|
2020-01-24 00:07:47 +01:00
|
|
|
margin-bottom: $padding-16;
|
|
|
|
|
|
|
|
label {
|
|
|
|
line-height: 0;
|
|
|
|
}
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.book-search {
|
|
|
|
position: relative;
|
|
|
|
margin: $padding-16 0;
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
display: block;
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
padding: $padding-8;
|
|
|
|
|
|
|
|
border: 0;
|
2020-02-10 17:49:18 +01:00
|
|
|
border-radius: $border-radius;
|
2019-10-08 17:03:40 +02:00
|
|
|
|
|
|
|
background: $gray-100;
|
2019-10-08 23:17:30 +02:00
|
|
|
color: $body-font-color;
|
2019-10-08 17:03:40 +02:00
|
|
|
|
|
|
|
&:required + .book-search-spinner {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-search-spinner {
|
|
|
|
position: absolute;
|
|
|
|
margin: $padding-8;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
width: $padding-16;
|
|
|
|
height: $padding-16;
|
|
|
|
|
|
|
|
border: $padding-1 solid transparent;
|
|
|
|
border-top-color: $body-font-color;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
@include spin(1s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-toc {
|
|
|
|
flex: 0 0 $toc-width;
|
|
|
|
font-size: $font-size-12;
|
|
|
|
|
|
|
|
nav {
|
|
|
|
width: $toc-width;
|
|
|
|
padding: $padding-16;
|
|
|
|
|
|
|
|
@include fixed;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav > ul > li:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-footer {
|
|
|
|
padding-top: $padding-16;
|
|
|
|
font-size: $font-size-14;
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: 1em;
|
2019-10-08 23:25:33 +02:00
|
|
|
margin-right: $padding-8;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-17 21:44:25 +01:00
|
|
|
.book-comments {
|
|
|
|
margin-top: $padding-16;
|
2020-01-13 17:46:19 +01:00
|
|
|
}
|
|
|
|
|
2019-11-10 00:23:06 +01:00
|
|
|
.book-languages {
|
|
|
|
position: relative;
|
|
|
|
overflow: visible;
|
|
|
|
|
|
|
|
padding: $padding-16;
|
|
|
|
margin: -$padding-16;
|
|
|
|
|
2020-02-10 22:05:17 +01:00
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
li {
|
|
|
|
white-space: nowrap;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-10 18:39:07 +01:00
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:focus-within {
|
|
|
|
.book-languages-list {
|
|
|
|
display: block;
|
2020-02-10 22:05:17 +01:00
|
|
|
}
|
2019-11-10 00:23:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.book-languages-list {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
position: absolute;
|
2020-02-10 18:39:07 +01:00
|
|
|
bottom: 100%;
|
2019-11-10 00:23:06 +01:00
|
|
|
left: 0;
|
|
|
|
padding: $padding-8 0;
|
|
|
|
|
|
|
|
background: $body-background;
|
|
|
|
box-shadow: 0 0 $padding-4 rgba(0, 0, 0, 0.1);
|
|
|
|
|
2020-02-10 22:05:17 +01:00
|
|
|
li img {
|
|
|
|
opacity: 0.25;
|
2019-11-10 00:23:06 +01:00
|
|
|
}
|
|
|
|
|
2020-02-10 22:05:17 +01:00
|
|
|
li.active img,
|
|
|
|
li:hover img {
|
2019-11-10 00:23:06 +01:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: inherit;
|
2020-02-10 18:39:07 +01:00
|
|
|
padding: $padding-8 $padding-16;
|
2019-11-10 00:23:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-08 17:03:40 +02:00
|
|
|
.book-home {
|
|
|
|
padding: $padding-16;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Responsive styles
|
|
|
|
aside nav,
|
|
|
|
.book-page,
|
2020-01-24 00:07:47 +01:00
|
|
|
.book-header aside,
|
2019-10-08 17:03:40 +02:00
|
|
|
.markdown {
|
|
|
|
transition: 0.2s ease-in-out;
|
2020-01-13 17:44:24 +01:00
|
|
|
transition-property: transform, margin, opacity;
|
|
|
|
will-change: transform, margin;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
2020-01-24 00:07:47 +01:00
|
|
|
@media screen and (max-width: $mobile-breakpoint) {
|
2019-10-08 17:03:40 +02:00
|
|
|
.book-menu {
|
|
|
|
margin-left: -$menu-width;
|
|
|
|
font-size: $font-size-base;
|
|
|
|
}
|
2020-01-24 00:07:47 +01:00
|
|
|
|
2020-01-13 17:44:24 +01:00
|
|
|
.book-toc {
|
2020-01-24 00:07:47 +01:00
|
|
|
display: none;
|
2020-01-13 17:44:24 +01:00
|
|
|
}
|
2019-10-08 17:03:40 +02:00
|
|
|
|
|
|
|
.book-header {
|
2020-01-24 00:07:47 +01:00
|
|
|
display: block;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
2020-01-24 00:07:47 +01:00
|
|
|
#menu-control:checked + main {
|
|
|
|
.book-menu nav,
|
2019-12-14 13:38:27 +01:00
|
|
|
.book-page {
|
2019-10-08 17:03:40 +02:00
|
|
|
transform: translateX($menu-width);
|
|
|
|
}
|
2020-01-24 00:07:47 +01:00
|
|
|
|
|
|
|
.book-header aside,
|
2020-01-13 17:44:24 +01:00
|
|
|
.markdown {
|
|
|
|
opacity: 0.25;
|
|
|
|
}
|
|
|
|
}
|
2020-01-24 00:07:47 +01:00
|
|
|
|
|
|
|
#toc-control:checked + aside {
|
|
|
|
display: block;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Extra space for big screens
|
|
|
|
@media screen and (min-width: $container-max-width) {
|
|
|
|
.book-page,
|
|
|
|
.book-menu nav,
|
|
|
|
.book-toc nav {
|
|
|
|
padding: $padding-16 * 2 $padding-16;
|
|
|
|
}
|
|
|
|
}
|