2019-04-23 21:29:22 +02:00
|
|
|
@import "normalize";
|
2018-11-24 15:10:43 +01:00
|
|
|
@import "variables";
|
|
|
|
@import "utils";
|
2019-06-12 17:27:46 +02:00
|
|
|
@import "markdown";
|
|
|
|
@import "shortcodes";
|
2018-09-26 00:12:56 +02:00
|
|
|
|
2018-09-05 16:22:04 +02:00
|
|
|
html {
|
|
|
|
font-size: $font-size-base;
|
2018-11-24 15:10:43 +01:00
|
|
|
letter-spacing: 0.33px;
|
2018-11-26 01:14:03 +01:00
|
|
|
scroll-behavior: smooth;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
html,
|
|
|
|
body {
|
2018-09-05 16:22:04 +02:00
|
|
|
min-width: $body-min-width;
|
2018-11-25 12:38:58 +01:00
|
|
|
overflow-x: hidden;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2018-09-13 18:07:55 +02:00
|
|
|
color: $body-font-color;
|
|
|
|
background: $body-background;
|
2019-05-22 09:08:15 +02:00
|
|
|
|
|
|
|
font-family: sans-serif;
|
2018-09-26 00:12:56 +02:00
|
|
|
font-weight: $body-font-weight;
|
|
|
|
|
2018-11-07 12:54:18 +01:00
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
2018-09-26 00:12:56 +02:00
|
|
|
box-sizing: border-box;
|
|
|
|
* {
|
|
|
|
box-sizing: inherit;
|
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5 {
|
2019-06-10 17:09:43 +02:00
|
|
|
font-weight: $body-font-weight;
|
2018-09-28 01:12:07 +02:00
|
|
|
}
|
|
|
|
|
2018-09-11 16:51:27 +02:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: $color-link;
|
2018-09-24 17:03:23 +02:00
|
|
|
|
|
|
|
&:visited {
|
|
|
|
color: $color-visited-link;
|
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2018-10-08 20:56:06 +02:00
|
|
|
img {
|
2019-06-19 10:26:15 +02:00
|
|
|
vertical-align: baseline;
|
2018-10-08 20:56:06 +02:00
|
|
|
}
|
|
|
|
|
2018-11-25 11:10:23 +01:00
|
|
|
aside nav ul {
|
2018-11-24 15:10:43 +01:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2018-11-25 12:06:09 +01:00
|
|
|
a:hover {
|
2019-05-22 09:08:15 +02:00
|
|
|
opacity: 0.5;
|
2018-11-25 12:06:09 +01:00
|
|
|
}
|
|
|
|
|
2018-09-26 00:12:56 +02:00
|
|
|
ul {
|
|
|
|
padding-left: $padding-16;
|
2018-09-24 17:03:23 +02:00
|
|
|
}
|
2018-11-24 15:10:43 +01:00
|
|
|
}
|
2018-09-26 00:12:56 +02:00
|
|
|
|
2018-11-25 11:10:23 +01:00
|
|
|
ul.pagination {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2019-07-18 10:08:43 +02:00
|
|
|
list-style-type: none;
|
2018-11-25 11:10:23 +01:00
|
|
|
|
|
|
|
.page-item a {
|
|
|
|
padding: $padding-16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
.container {
|
|
|
|
max-width: $container-max-width;
|
|
|
|
margin: 0 auto;
|
2018-09-24 17:03:23 +02:00
|
|
|
}
|
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
.book-brand {
|
|
|
|
margin-top: 0;
|
2019-09-01 20:05:34 +02:00
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 40px;
|
|
|
|
max-height: 40px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
.book-menu {
|
|
|
|
flex: 0 0 $menu-width;
|
|
|
|
font-size: $font-size-14;
|
2018-10-08 20:56:06 +02:00
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
nav {
|
|
|
|
width: $menu-width;
|
|
|
|
padding: $padding-16;
|
2018-10-08 20:56:06 +02:00
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
@include fixed;
|
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2018-11-25 13:30:25 +01:00
|
|
|
@include dark-links;
|
2018-11-24 15:10:43 +01:00
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2019-04-22 19:17:39 +02:00
|
|
|
.book-section-flat {
|
|
|
|
margin-bottom: $padding-16 * 2;
|
2019-06-10 13:42:35 +02:00
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
margin-top: $padding-16 * 2;
|
|
|
|
}
|
2019-04-22 19:17:39 +02:00
|
|
|
|
2019-05-22 09:08:15 +02:00
|
|
|
> a,
|
|
|
|
> span {
|
2019-06-10 17:09:43 +02:00
|
|
|
font-weight: bolder;
|
2019-04-22 19:17:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
.book-page {
|
|
|
|
min-width: $body-min-width;
|
2019-03-29 16:15:43 +01:00
|
|
|
flex-grow: 1;
|
2018-11-24 15:10:43 +01:00
|
|
|
padding: $padding-16;
|
|
|
|
}
|
2018-09-24 17:03:23 +02:00
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
.book-header {
|
|
|
|
margin-bottom: $padding-16;
|
|
|
|
display: none;
|
|
|
|
}
|
2018-09-30 01:22:39 +02:00
|
|
|
|
2019-07-15 18:25:21 +02:00
|
|
|
.book-search {
|
2019-07-17 17:56:12 +02:00
|
|
|
position: relative;
|
|
|
|
margin: $padding-16 0;
|
2019-08-06 13:04:14 +02:00
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
display: block;
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
}
|
2019-07-17 17:56:12 +02:00
|
|
|
|
|
|
|
input {
|
2019-08-06 13:04:14 +02:00
|
|
|
width: 100%;
|
|
|
|
padding: $padding-8;
|
|
|
|
|
2019-07-16 14:34:02 +02:00
|
|
|
border: 0;
|
2019-08-06 11:33:22 +02:00
|
|
|
border-radius: $padding-4;
|
2019-07-16 14:37:27 +02:00
|
|
|
|
2019-08-06 11:33:22 +02:00
|
|
|
background: $gray-100;
|
2019-07-17 17:56:12 +02:00
|
|
|
|
|
|
|
&:required + .book-search-spinner {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-search-spinner {
|
|
|
|
position: absolute;
|
2019-08-06 11:33:22 +02:00
|
|
|
margin: $padding-8;
|
2019-07-17 17:56:12 +02:00
|
|
|
right: 0;
|
2019-08-06 11:33:22 +02:00
|
|
|
top: 0;
|
2019-07-17 17:56:12 +02:00
|
|
|
|
|
|
|
width: $padding-16;
|
|
|
|
height: $padding-16;
|
|
|
|
|
|
|
|
border: $padding-1 solid transparent;
|
|
|
|
border-top-color: $body-font-color;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
2019-08-06 11:33:22 +02:00
|
|
|
@include spin(1s);
|
2019-07-16 14:34:02 +02:00
|
|
|
}
|
2019-07-15 18:25:21 +02:00
|
|
|
}
|
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
.book-toc {
|
|
|
|
flex: 0 0 $toc-width;
|
|
|
|
font-size: $font-size-12;
|
2018-09-11 16:51:27 +02:00
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
nav {
|
|
|
|
width: $toc-width;
|
|
|
|
padding: $padding-16;
|
2018-09-28 01:12:07 +02:00
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
@include fixed;
|
2018-09-11 16:51:27 +02:00
|
|
|
}
|
|
|
|
|
2019-06-19 10:26:15 +02:00
|
|
|
img {
|
|
|
|
height: 1em;
|
|
|
|
}
|
|
|
|
|
2019-05-22 15:44:31 +02:00
|
|
|
nav > ul > li:first-child {
|
|
|
|
margin-top: 0;
|
2018-09-11 16:51:27 +02:00
|
|
|
}
|
2019-05-27 16:48:23 +02:00
|
|
|
|
|
|
|
// Classes to hide nested levels of ToC (can be replaced by @for, but it's more clear like this)
|
|
|
|
&.level-1 ul ul,
|
|
|
|
&.level-2 ul ul ul,
|
|
|
|
&.level-3 ul ul ul ul,
|
|
|
|
&.level-4 ul ul ul ul ul,
|
|
|
|
&.level-5 ul ul ul ul ul ul,
|
|
|
|
&.level-6 ul ul ul ul ul ul ul {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-11-24 15:10:43 +01:00
|
|
|
}
|
2018-09-11 16:51:27 +02:00
|
|
|
|
2019-03-31 23:48:17 +02:00
|
|
|
.book-footer {
|
|
|
|
display: flex;
|
2019-05-23 16:30:26 +02:00
|
|
|
padding-top: $padding-16;
|
2019-03-31 23:48:17 +02:00
|
|
|
font-size: $font-size-14;
|
|
|
|
|
|
|
|
img {
|
2019-05-23 16:43:54 +02:00
|
|
|
height: 1em;
|
2019-03-31 23:48:17 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
.book-posts {
|
|
|
|
min-width: $body-min-width;
|
2019-07-16 14:34:02 +02:00
|
|
|
max-width: $body-min-width * 2;
|
2019-03-29 16:15:43 +01:00
|
|
|
flex-grow: 1;
|
2018-11-24 15:10:43 +01:00
|
|
|
padding: $padding-16;
|
2018-09-24 17:03:23 +02:00
|
|
|
|
2018-11-25 11:10:23 +01:00
|
|
|
article {
|
|
|
|
padding-bottom: $padding-16;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
2018-09-24 17:03:23 +02:00
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2019-04-22 22:19:08 +02:00
|
|
|
.book-home {
|
|
|
|
padding: $padding-16;
|
|
|
|
}
|
|
|
|
|
2018-09-26 00:12:56 +02:00
|
|
|
// Responsive styles
|
2018-11-24 15:10:43 +01:00
|
|
|
aside nav,
|
|
|
|
.book-page,
|
2019-01-24 23:30:31 +01:00
|
|
|
.book-posts,
|
2018-11-24 15:10:43 +01:00
|
|
|
.markdown {
|
|
|
|
transition: 0.2s ease-in-out;
|
|
|
|
transition-property: transform, margin-left, opacity;
|
|
|
|
will-change: transform, margin-left;
|
|
|
|
}
|
2018-09-26 00:12:56 +02:00
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
@media screen and (max-width: $md-breakpoint) {
|
|
|
|
.book-toc {
|
2018-09-26 00:12:56 +02:00
|
|
|
display: none;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
2018-09-26 00:12:56 +02:00
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
@media screen and (max-width: $sm-breakpoint) {
|
|
|
|
.book-menu {
|
|
|
|
margin-left: -$menu-width;
|
2019-07-15 18:25:21 +02:00
|
|
|
font-size: $font-size-base;
|
2018-09-26 00:12:56 +02:00
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2018-11-24 15:10:43 +01:00
|
|
|
.book-header {
|
2018-09-26 00:12:56 +02:00
|
|
|
display: flex;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2018-09-30 01:22:39 +02:00
|
|
|
#menu-control:checked + main {
|
2018-11-24 15:10:43 +01:00
|
|
|
.book-menu nav,
|
2019-01-24 23:30:31 +01:00
|
|
|
.book-page,
|
|
|
|
.book-posts {
|
2018-11-24 15:10:43 +01:00
|
|
|
transform: translateX($menu-width);
|
2018-09-26 00:12:56 +02:00
|
|
|
}
|
2018-11-24 15:10:43 +01:00
|
|
|
|
2018-11-25 12:38:58 +01:00
|
|
|
.book-header label {
|
2018-09-26 00:12:56 +02:00
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown {
|
2018-11-24 15:10:43 +01:00
|
|
|
opacity: 0.25;
|
2018-09-26 00:12:56 +02:00
|
|
|
}
|
2018-09-13 18:07:55 +02:00
|
|
|
}
|
2018-09-24 17:03:23 +02:00
|
|
|
}
|
2018-10-08 20:56:06 +02:00
|
|
|
|
|
|
|
// Extra space for big screens
|
2018-11-24 15:10:43 +01:00
|
|
|
@media screen and (min-width: $container-max-width) {
|
|
|
|
.book-page,
|
2019-04-22 19:17:39 +02:00
|
|
|
.book-posts,
|
2018-11-24 15:10:43 +01:00
|
|
|
.book-menu nav,
|
|
|
|
.book-toc nav {
|
|
|
|
padding: $padding-16 * 2 $padding-16;
|
|
|
|
}
|
2019-04-09 22:59:29 +02:00
|
|
|
}
|
|
|
|
|
2019-05-22 09:08:15 +02:00
|
|
|
// Add fonts
|
|
|
|
@import "fonts";
|
|
|
|
|
2019-04-09 22:59:29 +02:00
|
|
|
// Add custom defined styles
|
2019-05-22 09:08:15 +02:00
|
|
|
@import "custom";
|