projects
/
styx.blog
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4e24ed1
)
Fiddle the color palette a bit
author
David Kerkeslager
<kerkeslager@gmail.com>
Mon, 17 Aug 2020 18:55:13 +0000
(14:55 -0400)
committer
David Kerkeslager
<kerkeslager@gmail.com>
Mon, 17 Aug 2020 18:55:13 +0000
(14:55 -0400)
core/templates/core/style.css
patch
|
blob
|
history
diff --git
a/core/templates/core/style.css
b/core/templates/core/style.css
index
9e38a57
..
3e7ea09
100644
(file)
--- a/
core/templates/core/style.css
+++ b/
core/templates/core/style.css
@@
-1,8
+1,19
@@
+{% 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 {
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;
header, main, footer, p {
margin: 0;
padding: 0;
@@
-100,7
+111,7
@@
article:first-of-type {
}
article:not(:first-of-type) {
}
article:not(:first-of-type) {
- border-top: 1px solid
black
;
+ border-top: 1px solid
{{ light_foreground }}
;
padding-top: 2rem;
}
padding-top: 2rem;
}
@@
-135,16
+146,18
@@
nav.pagination:last-child {
}
@media (prefers-color-scheme: dark) {
}
@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) {
}
article:not(:first-of-type) {
- border-top: 1px solid
#dfdddd
;
+ border-top: 1px solid
{{ dark_foreground }}
;
}
}
}
}
+{% endwith %}