+{% with dark_background='#121212' dark_foreground='#dfdede' light_background='#ddddd7' light_foreground='#444444' %}
html {
height: 100%;
font-family: "Lucida Grande", Verdana, Arial, sans-serif;
}
+html,
+a,
+a:link,
+a:hover,
+a:visited,
+a:active {
+ color: {{ light_foreground }};
+ background: {{ light_background }};
+}
+
header, main, footer, p {
margin: 0;
padding: 0;
}
body > nav {
+ display: flex;
+ align-items: center;
margin-bottom: 4rem;
}
+body > nav a:not(:first-child) {
+ margin-left: 1.5rem;
+}
+
body > main {
width: calc(100% - 4rem);
max-width: 40rem;
}
article:not(:first-of-type) {
- border-top: 1px solid black;
+ border-top: 1px solid {{ light_foreground }};
padding-top: 2rem;
}
}
@media (prefers-color-scheme: dark) {
- html {
- color: #dfdede;
- background: #121212;
- }
-
- a {
- color: #dfdede;
+ html,
+ a,
+ a:link,
+ a:hover,
+ a:visited,
+ a:active {
+ color: {{ dark_foreground }};
+ background: {{ dark_background }};
}
article:not(:first-of-type) {
- border-top: 1px solid #dfdddd;
+ border-top: 1px solid {{ dark_foreground }};
}
}
+{% endwith %}