2022-06-28 12:59:32 +02:00
|
|
|
@import 'breakpoints';
|
|
|
|
@import 'colors';
|
|
|
|
|
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
font-family: sans-serif;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
color: $color-text;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin: 0 auto;
|
2022-06-27 17:27:51 +02:00
|
|
|
min-height: 100vh;
|
2022-06-28 12:59:32 +02:00
|
|
|
max-width: $large;
|
|
|
|
|
|
|
|
main {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
header, footer {
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
2022-07-02 01:26:23 +02:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
2022-07-08 17:19:39 +02:00
|
|
|
margin-top: 1rem;
|
2022-06-28 12:59:32 +02:00
|
|
|
|
2022-07-02 01:26:23 +02:00
|
|
|
pre {
|
|
|
|
font-family: monospace;
|
|
|
|
font-size: 0.8rem;
|
|
|
|
line-height: 1;
|
|
|
|
user-select: none;
|
2022-07-08 17:19:39 +02:00
|
|
|
|
|
|
|
b {
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
2022-07-02 01:26:23 +02:00
|
|
|
}
|
|
|
|
|
2022-06-28 12:59:32 +02:00
|
|
|
nav {
|
|
|
|
font-size: 1.2rem;
|
|
|
|
}
|
2022-07-08 17:19:39 +02:00
|
|
|
|
|
|
|
@media screen and (min-width: $small) {
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
}
|
2022-06-28 12:59:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
footer {
|
2022-07-08 17:19:39 +02:00
|
|
|
margin-bottom: 1rem;
|
2022-06-28 12:59:32 +02:00
|
|
|
|
|
|
|
nav {
|
|
|
|
align-items: end;
|
|
|
|
|
|
|
|
@media screen and (min-width: $small) {
|
|
|
|
align-items: normal;
|
|
|
|
justify-content: end;
|
|
|
|
}
|
|
|
|
}
|
2022-07-08 17:19:39 +02:00
|
|
|
|
|
|
|
@media screen and (min-width: $small) {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
2022-06-28 12:59:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
nav {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2022-07-02 01:26:23 +02:00
|
|
|
&.nav-toggleable {
|
|
|
|
flex-basis: 100%;
|
|
|
|
max-height: 0;
|
|
|
|
overflow-y: hidden;
|
|
|
|
transition: max-height 0.5s;
|
|
|
|
|
|
|
|
.nav-toggle:checked ~ & {
|
|
|
|
max-height: calc(var(--num-elements) * 2em);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-08 04:16:32 +02:00
|
|
|
&.pagination {
|
|
|
|
margin-top: 2.5em;
|
|
|
|
|
|
|
|
:first-child {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a, span {
|
2022-07-02 01:26:23 +02:00
|
|
|
line-height: 1.5em;
|
|
|
|
margin: 0.5em 0 0 0;
|
2022-06-28 12:59:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: $small) {
|
|
|
|
flex-direction: row;
|
|
|
|
|
2022-07-02 01:26:23 +02:00
|
|
|
&.nav-toggleable {
|
|
|
|
flex-basis: auto;
|
|
|
|
max-height: max-content;
|
|
|
|
}
|
|
|
|
|
2022-07-08 04:16:32 +02:00
|
|
|
a, span {
|
2022-07-02 01:26:23 +02:00
|
|
|
margin: 0 0 0 1em;
|
2022-06-28 12:59:32 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2022-07-08 04:16:32 +02:00
|
|
|
color: $color-link;
|
2022-06-28 12:59:32 +02:00
|
|
|
text-decoration: none;
|
|
|
|
|
2022-07-08 04:16:32 +02:00
|
|
|
&:hover, &.is-active {
|
2022-06-28 12:59:32 +02:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-02 01:43:04 +02:00
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
margin-bottom: 0.5em;
|
2022-06-28 12:59:32 +02:00
|
|
|
}
|
|
|
|
|
2022-07-02 01:43:04 +02:00
|
|
|
p {
|
|
|
|
margin-bottom: 1em;
|
2022-06-27 17:27:51 +02:00
|
|
|
}
|
2022-07-02 01:26:23 +02:00
|
|
|
|
2022-07-08 04:16:32 +02:00
|
|
|
ol, ul {
|
|
|
|
margin-bottom: 2em;
|
|
|
|
padding-left: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
color: $color-text;
|
|
|
|
margin: 3em 0;
|
|
|
|
}
|
|
|
|
|
2022-07-02 01:26:23 +02:00
|
|
|
.nav-burger {
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 1rem;
|
|
|
|
justify-content: space-between;
|
|
|
|
width: 1.2rem;
|
|
|
|
|
|
|
|
div {
|
2022-07-04 15:19:48 +02:00
|
|
|
background: $color-burger;
|
|
|
|
height: 2px;
|
|
|
|
transition: background 0.5s, transform 0.5s;
|
2022-07-02 01:26:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-toggle:checked ~ & div {
|
2022-07-04 15:19:48 +02:00
|
|
|
background: transparent;
|
2022-07-02 01:26:23 +02:00
|
|
|
|
|
|
|
&:first-child {
|
2022-07-04 15:19:48 +02:00
|
|
|
background: $color-burger;
|
2022-07-02 01:26:23 +02:00
|
|
|
transform: translateY(0.5rem) translateY(-1px) rotate(45deg) scaleX(141%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
2022-07-04 15:19:48 +02:00
|
|
|
background: $color-burger;
|
2022-07-02 01:26:23 +02:00
|
|
|
transform: translateY(-0.5rem) translateY(1px) rotate(-45deg) scaleX(141%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: $small) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-toggle {
|
|
|
|
display: none;
|
|
|
|
}
|