2019-10-08 17:03:40 +02:00
|
|
|
html {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
scroll-behavior: smooth;
|
2020-02-12 23:31:58 +01:00
|
|
|
touch-action: manipulation;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
min-width: $body-min-width;
|
2020-09-14 00:02:55 +02:00
|
|
|
color: var(--body-font-color);
|
|
|
|
background: var(--body-background);
|
2019-10-08 17:03:40 +02:00
|
|
|
|
2020-06-13 18:19:58 +02:00
|
|
|
letter-spacing: 0.33px;
|
2019-10-08 17:03:40 +02:00
|
|
|
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;
|
2020-09-14 00:02:55 +02:00
|
|
|
color: var(--color-link);
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: baseline;
|
|
|
|
}
|
|
|
|
|
2020-07-07 23:06:21 +02:00
|
|
|
:focus {
|
|
|
|
@include outline;
|
|
|
|
}
|
|
|
|
|
2019-10-08 17:03:40 +02:00
|
|
|
aside nav ul {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 1em 0;
|
2020-03-07 14:03:46 +01:00
|
|
|
position: relative;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2020-05-17 13:09:48 +02:00
|
|
|
padding-inline-start: $padding-16;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul.pagination {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
list-style-type: none;
|
2022-08-02 12:57:40 +02:00
|
|
|
padding-inline-start: 0px;
|
2019-10-08 17:03:40 +02:00
|
|
|
|
|
|
|
.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 {
|
2020-09-14 00:02:55 +02:00
|
|
|
filter: var(--icon-filter);
|
2019-12-09 11:05:49 +01:00
|
|
|
}
|
|
|
|
|
2019-10-08 17:03:40 +02:00
|
|
|
.book-brand {
|
|
|
|
margin-top: 0;
|
2021-08-18 11:12:50 +02:00
|
|
|
margin-bottom: $padding-16;
|
2019-10-08 17:03:40 +02:00
|
|
|
|
|
|
|
img {
|
|
|
|
height: 1.5em;
|
2021-08-18 11:12:50 +02:00
|
|
|
width: 1.5em;
|
2020-05-17 13:09:48 +02:00
|
|
|
margin-inline-end: $padding-8;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-menu {
|
|
|
|
flex: 0 0 $menu-width;
|
|
|
|
font-size: $font-size-14;
|
|
|
|
|
2021-01-26 22:20:17 +01:00
|
|
|
.book-menu-content {
|
2019-10-08 17:03:40 +02:00
|
|
|
width: $menu-width;
|
|
|
|
padding: $padding-16;
|
2020-09-14 00:02:55 +02:00
|
|
|
background: var(--body-background);
|
2019-10-08 17:03:40 +02:00
|
|
|
|
|
|
|
@include fixed;
|
|
|
|
}
|
|
|
|
|
2020-09-14 22:45:31 +02:00
|
|
|
a,
|
|
|
|
label {
|
2019-10-27 12:33:14 +01:00
|
|
|
color: inherit;
|
2020-09-14 22:45:31 +02:00
|
|
|
cursor: pointer;
|
2020-03-07 14:03:46 +01:00
|
|
|
word-wrap: break-word;
|
2019-10-27 12:33:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
a.active {
|
2020-09-14 00:02:55 +02:00
|
|
|
color: var(--color-link);
|
2019-10-27 12:33:14 +01:00
|
|
|
}
|
2020-02-29 21:15:52 +01:00
|
|
|
|
2020-09-14 22:45:31 +02:00
|
|
|
input.toggle + label + ul {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-05-17 13:09:48 +02:00
|
|
|
|
2020-09-14 22:45:31 +02:00
|
|
|
input.toggle:checked + label + ul {
|
|
|
|
display: block;
|
2020-02-29 21:15:52 +01:00
|
|
|
}
|
2021-05-03 21:18:49 +02:00
|
|
|
|
|
|
|
input.toggle + label::after {
|
|
|
|
content: "▸";
|
|
|
|
}
|
|
|
|
|
|
|
|
input.toggle:checked + label::after {
|
|
|
|
content: "▾";
|
|
|
|
}
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
2021-06-21 20:18:14 +02:00
|
|
|
// for RTL support
|
|
|
|
body[dir="rtl"] .book-menu {
|
|
|
|
input.toggle + label::after {
|
|
|
|
content: "◂";
|
|
|
|
}
|
|
|
|
|
|
|
|
input.toggle:checked + label::after {
|
|
|
|
content: "▾";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-08 17:03:40 +02:00
|
|
|
.book-section-flat {
|
2021-08-18 11:12:50 +02:00
|
|
|
margin: $padding-16 * 2 0;
|
2019-10-08 17:03:40 +02:00
|
|
|
|
|
|
|
> a,
|
2020-09-22 10:33:02 +02:00
|
|
|
> span,
|
|
|
|
> label {
|
2019-10-08 17:03:40 +02:00
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
2020-05-17 13:09:48 +02:00
|
|
|
padding-inline-start: 0;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
2021-05-20 18:58:02 +02:00
|
|
|
|
|
|
|
img.book-icon {
|
|
|
|
height: 1.5em;
|
|
|
|
width: 1.5em;
|
|
|
|
}
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.book-search {
|
|
|
|
position: relative;
|
|
|
|
margin: $padding-16 0;
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
|
|
|
|
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
|
|
|
|
2020-09-14 00:02:55 +02:00
|
|
|
background: var(--gray-100);
|
|
|
|
color: var(--body-font-color);
|
2019-10-08 17:03:40 +02:00
|
|
|
|
|
|
|
&:required + .book-search-spinner {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-search-spinner {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2020-05-19 23:10:11 +02:00
|
|
|
margin: $padding-8;
|
|
|
|
margin-inline-start: calc(100% - #{$padding-16 + $padding-8});
|
2019-10-08 17:03:40 +02:00
|
|
|
|
|
|
|
width: $padding-16;
|
|
|
|
height: $padding-16;
|
|
|
|
|
|
|
|
border: $padding-1 solid transparent;
|
2020-09-14 00:02:55 +02:00
|
|
|
border-top-color: var(--body-font-color);
|
2019-10-08 17:03:40 +02:00
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
@include spin(1s);
|
|
|
|
}
|
2020-07-06 22:17:36 +02:00
|
|
|
|
2020-07-07 23:06:21 +02:00
|
|
|
small {
|
|
|
|
opacity: 0.5;
|
2020-07-06 22:17:36 +02:00
|
|
|
}
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.book-toc {
|
|
|
|
flex: 0 0 $toc-width;
|
|
|
|
font-size: $font-size-12;
|
|
|
|
|
2021-01-26 22:20:17 +01:00
|
|
|
.book-toc-content {
|
2019-10-08 17:03:40 +02:00
|
|
|
width: $toc-width;
|
|
|
|
padding: $padding-16;
|
|
|
|
|
|
|
|
@include fixed;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: 1em;
|
2021-05-20 18:58:02 +02:00
|
|
|
width: 1em;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
nav > ul > li:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-footer {
|
|
|
|
padding-top: $padding-16;
|
|
|
|
font-size: $font-size-14;
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: 1em;
|
2021-05-20 18:58:02 +02:00
|
|
|
width: 1em;
|
2020-05-17 13:09:48 +02:00
|
|
|
margin-inline-end: $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 {
|
2021-08-18 11:12:50 +02:00
|
|
|
margin-block-end: $padding-16 * 2;
|
2020-02-10 22:05:17 +01:00
|
|
|
|
2021-08-18 11:12:50 +02:00
|
|
|
.book-icon {
|
|
|
|
height: 1em;
|
|
|
|
width: 1em;
|
|
|
|
margin-inline-end: .5em;
|
2019-11-10 00:23:06 +01:00
|
|
|
}
|
|
|
|
|
2021-08-18 11:12:50 +02:00
|
|
|
ul {
|
|
|
|
padding-inline-start: 1.5em;
|
2019-11-10 00:23:06 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-08 17:03:40 +02:00
|
|
|
// Responsive styles
|
2021-01-26 22:20:17 +01:00
|
|
|
.book-menu-content,
|
|
|
|
.book-toc-content,
|
2019-10-08 17:03:40 +02:00
|
|
|
.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-06-13 18:19:58 +02:00
|
|
|
transition-property: transform, margin, opacity, visibility;
|
|
|
|
will-change: transform, margin, opacity;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
2020-01-24 00:07:47 +01:00
|
|
|
@media screen and (max-width: $mobile-breakpoint) {
|
2020-07-07 23:06:21 +02:00
|
|
|
#menu-control,
|
|
|
|
#toc-control {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2019-10-08 17:03:40 +02:00
|
|
|
.book-menu {
|
2020-06-13 18:19:58 +02:00
|
|
|
visibility: hidden;
|
2020-05-17 13:09:48 +02:00
|
|
|
margin-inline-start: -$menu-width;
|
2019-10-08 17:03:40 +02:00
|
|
|
font-size: $font-size-base;
|
2020-07-07 23:06:21 +02:00
|
|
|
z-index: 1;
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
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-07-07 23:06:21 +02:00
|
|
|
#menu-control:focus ~ main label[for="menu-control"] {
|
|
|
|
@include outline;
|
|
|
|
}
|
|
|
|
|
|
|
|
#menu-control:checked ~ main {
|
2020-06-13 18:19:58 +02:00
|
|
|
.book-menu {
|
|
|
|
visibility: initial;
|
|
|
|
}
|
|
|
|
|
2021-01-26 22:20:17 +01:00
|
|
|
.book-menu .book-menu-content {
|
2019-10-08 17:03:40 +02:00
|
|
|
transform: translateX($menu-width);
|
2020-06-13 18:19:58 +02:00
|
|
|
box-shadow: 0 0 $padding-8 rgba(0, 0, 0, 0.1);
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
2020-01-24 00:07:47 +01:00
|
|
|
|
2020-06-13 00:21:08 +02:00
|
|
|
.book-page {
|
2020-01-13 17:44:24 +01:00
|
|
|
opacity: 0.25;
|
|
|
|
}
|
2020-02-27 22:58:15 +01:00
|
|
|
|
|
|
|
.book-menu-overlay {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
2020-01-13 17:44:24 +01:00
|
|
|
}
|
2020-01-24 00:07:47 +01:00
|
|
|
|
2020-07-07 23:06:21 +02:00
|
|
|
#toc-control:focus ~ main label[for="toc-control"] {
|
|
|
|
@include outline;
|
|
|
|
}
|
|
|
|
|
|
|
|
#toc-control:checked ~ main {
|
|
|
|
.book-header aside {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-21 20:18:14 +02:00
|
|
|
// for RTL support
|
2021-06-08 10:08:46 +02:00
|
|
|
body[dir="rtl"] #menu-control:checked ~ main {
|
2021-01-26 22:20:17 +01:00
|
|
|
.book-menu .book-menu-content {
|
2020-05-18 23:58:21 +02:00
|
|
|
transform: translateX(-$menu-width);
|
|
|
|
}
|
|
|
|
}
|
2019-10-08 17:03:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Extra space for big screens
|
|
|
|
@media screen and (min-width: $container-max-width) {
|
|
|
|
.book-page,
|
2021-01-26 22:20:17 +01:00
|
|
|
.book-menu .book-menu-content,
|
|
|
|
.book-toc .book-toc-content {
|
2019-10-08 17:03:40 +02:00
|
|
|
padding: $padding-16 * 2 $padding-16;
|
|
|
|
}
|
|
|
|
}
|