2023-01-13 13:54:40 +01:00
|
|
|
@import 'animations';
|
|
|
|
@import 'breakpoints';
|
|
|
|
@import 'colors';
|
|
|
|
|
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
background: $color-background;
|
|
|
|
color: $color-text;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
font-family: "Noto Sans", sans-serif;
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: $large;
|
|
|
|
min-height: 100vh;
|
|
|
|
|
|
|
|
& > main {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-17 12:07:58 +01:00
|
|
|
header, footer {
|
|
|
|
padding: 0 1rem;
|
|
|
|
}
|
|
|
|
|
2023-01-13 13:54:40 +01:00
|
|
|
header {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
|
|
|
& > .header-title {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
2023-01-17 12:07:58 +01:00
|
|
|
footer {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
nav {
|
|
|
|
align-items: end;
|
|
|
|
|
|
|
|
@media screen and (min-width: $small) {
|
|
|
|
align-items: normal;
|
|
|
|
justify-content: end;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-13 13:54:40 +01:00
|
|
|
nav {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
&.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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a, span {
|
|
|
|
line-height: 1.5em;
|
|
|
|
margin: 0.5em 0 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: $small) {
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
&.nav-toggleable {
|
|
|
|
flex-basis: auto;
|
|
|
|
max-height: max-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
a, span {
|
|
|
|
margin: 0 0 0 1.2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: $color-link;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-17 12:07:58 +01:00
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
|
|
|
|
ol + &, p + &, pre + &, ul + & {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2023-01-13 13:54:40 +01:00
|
|
|
font-family: "Noto Sans Mono", monospace;
|
2023-01-17 12:07:58 +01:00
|
|
|
font-size: 6rem;
|
2023-01-13 13:54:40 +01:00
|
|
|
line-height: 1.15;
|
|
|
|
text-align: center;
|
2023-01-17 12:07:58 +01:00
|
|
|
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
animation: rainbow 3s linear 0s infinite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ol, p, pre, ul {
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ol, ul {
|
|
|
|
padding-left: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
background: $color-background-light;
|
|
|
|
border-radius: 3px;
|
|
|
|
color: $color-text-light;
|
|
|
|
font-family: "Noto Sans Mono", monospace;
|
|
|
|
font-size: 0.8rem;
|
|
|
|
overflow-x: auto;
|
|
|
|
padding: 0.8em 1em;
|
2023-01-13 13:54:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-burger {
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 1rem;
|
|
|
|
justify-content: space-between;
|
|
|
|
width: 1.2rem;
|
|
|
|
|
|
|
|
div {
|
|
|
|
background: $color-burger;
|
|
|
|
height: 2px;
|
|
|
|
transition: background 0.5s, transform 0.5s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-toggle:checked ~ & div {
|
|
|
|
background: transparent;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
background: $color-burger;
|
|
|
|
transform: translateY(0.5rem) translateY(-1px) rotate(45deg) scaleX(141%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
background: $color-burger;
|
|
|
|
transform: translateY(-0.5rem) translateY(1px) rotate(-45deg) scaleX(141%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: $small) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-toggle {
|
|
|
|
display: none;
|
|
|
|
}
|