]> git.cworth.org Git - lmno.games/commitdiff
Use named color to set the character of the character-reveal element
authorCarl Worth <cworth@cworth.org>
Sun, 17 May 2020 15:56:54 +0000 (08:56 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 17 May 2020 15:56:54 +0000 (08:56 -0700)
This makes me so happy! With these named colors, a low-level style
file like this one now has no explicit color values in it, but instead
simply inherits the defined, named colors from the theme above.

empires/style.css

index 5dcda650433322e591c4e2a8942895448cfb6b75..8298a65dcb9bef312c00b056c4ef836d37912458 100644 (file)
@@ -33,7 +33,7 @@
 }
 
 #character-reveal {
-    color: #333738;
+    color: var(--text-fg-color);
     font-size: 300%;
     font-weight: bold;
 }