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
|
|
|
}
|
|
|
|
|
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-09-24 17:03:23 +02:00
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
padding-left: $padding-16;
|
|
|
|
line-height: $padding-16 * 2;
|
2018-09-13 18:07:55 +02:00
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
li {
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
height: $padding-16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
height: $header-height;
|
|
|
|
padding: $padding-16;
|
|
|
|
top: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
background: $body-background;
|
|
|
|
@include shadow;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
label {
|
|
|
|
line-height: 0;
|
|
|
|
margin-right: $padding-16;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 1.5rem;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $nav-link-color;
|
|
|
|
}
|
2018-09-13 18:07:55 +02:00
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
.menu {
|
|
|
|
position: fixed;
|
2018-09-11 16:51:27 +02:00
|
|
|
width: $nav-menu-width;
|
2018-09-24 17:03:23 +02:00
|
|
|
top: $header-height;
|
|
|
|
bottom: 0;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: $padding-16;
|
|
|
|
|
|
|
|
background: $nav-background;
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
transition: transform 0.3s ease-in-out;
|
|
|
|
will-change: transform;
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
font-size: $font-size-14;
|
|
|
|
line-height: 2rem;
|
|
|
|
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
color: $nav-link-color;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: $color-link;
|
|
|
|
}
|
2018-09-11 16:51:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
2018-09-24 17:03:23 +02:00
|
|
|
}
|
2018-09-11 16:51:27 +02:00
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
// No padding for first level
|
|
|
|
> ul {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2018-09-17 18:29:36 +02:00
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
// Move content
|
|
|
|
+ div {
|
|
|
|
margin-left: $nav-menu-width;
|
|
|
|
margin-top: $header-height;
|
2018-09-11 16:51:27 +02:00
|
|
|
}
|
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
.root-section {
|
2018-09-11 16:51:27 +02:00
|
|
|
margin-bottom: $padding-16;
|
|
|
|
> a { font-weight: 600; }
|
|
|
|
> ul { padding-left: 0; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
.content {
|
|
|
|
margin: 0 auto;
|
2018-09-11 16:51:27 +02:00
|
|
|
max-width: $content-max-width;
|
|
|
|
min-width: $content-min-width;
|
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
.page {
|
|
|
|
overflow: hidden;
|
2018-09-11 16:51:27 +02:00
|
|
|
}
|
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
.toc {
|
2018-09-11 16:51:27 +02:00
|
|
|
font-size: $font-size-12;
|
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
nav > ul {
|
|
|
|
border-left: $padding-1 solid $gray-100;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
padding-left: $padding-8;
|
|
|
|
line-height: $padding-16 * 1.5;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
}
|
2018-09-24 17:03:23 +02:00
|
|
|
}
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
// Mobile styles
|
|
|
|
@media screen and (max-width: 50rem) {
|
|
|
|
.header label {
|
|
|
|
display: inline-block;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
.menu {
|
|
|
|
transform: translateX(-$nav-menu-width);
|
2018-09-05 16:22:04 +02:00
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
+ div {
|
|
|
|
margin-left: 0;
|
2018-09-05 16:22:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-24 17:03:23 +02:00
|
|
|
#nav-control:checked + nav {
|
|
|
|
@include shadow;
|
|
|
|
transform: translateX(0);
|
2018-09-13 18:07:55 +02:00
|
|
|
}
|
2018-09-24 17:03:23 +02:00
|
|
|
}
|