]> git.draconx.ca Git - homepage.git/blobdiff - content/style.scss
Apply background colour to the html element.
[homepage.git] / content / style.scss
index fb33f88d96ac3cd24cd89fcc7dc9d53d3af51bec..2708bb462e00c701f9b563fe9dec8ac94f67d9e5 100644 (file)
     max-width: 1em * ($maxwidth / $fontsize);
 }
 
+html { @include usecolours($background-color: background); }
 body {
+    @include usecolours($color: foreground);
     font-family: sans-serif;
     margin: 1em;
-
-    @include usecolours
-        ( $background-color: background
-        , $color: foreground
-        );
 }
 
 a:link {
@@ -454,6 +451,13 @@ ul.ordered > {
     #footer { padding: 0 1em; }
 }
 
+// lighten icon shadows in dark mode
+@media (prefers-color-scheme: dark) {
+    svg.icons { path.shadow, g.shadow>* { opacity: 0.7; } }
+    svg.icons .shadow>stop { stop-color: #aaa; }
+    svg.return path.shadow { opacity: 0.45; }
+}
+
 // page-specific dark mode styles
 @media (prefers-color-scheme: dark) and (min-width: 35em) {
     #page_weblog_responsive_tables {