sc: minimal mono style of significant colour distinctions
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 15 Jun 2024 02:53:49 +0000 (04:53 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 7 Aug 2024 21:52:55 +0000 (23:52 +0200)
sc.plp
style/sc.scss

diff --git a/sc.plp b/sc.plp
index e784cbdd6dbe6a67886bf98e5beb85c92f3c6463..753ea4c68089c1145d53f85a9021fa3a0d55610b 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -52,8 +52,8 @@ Html({
                $scver{major} < 2 ? qw' bw broodwar brood war ' :
                qw' starcraft2 lotv hots wol ',
        ],
-       stylesheet => [qw( light dark )],
-       raw => '<link rel="stylesheet" type="text/css" media="all" href="/sc.css?1.2">',
+       stylesheet => [qw( light dark mono )],
+       raw => '<link rel="stylesheet" type="text/css" media="all" href="/sc.css?1.3">',
        data => ["$datafile.inc.pl"],
 });
 
index 6f882518f6ed351be8884cd61ecbc7e5f7d15928..62f58078d669d509eb80a3f38223501d87549241 100644 (file)
@@ -308,3 +308,46 @@ body .magic-perma {
                -webkit-text-decoration-color: #460;
        }
 }
+
+.s-mono {
+       .unit-min {color: #000}
+       .unit-gas {color: #888}
+
+       .unit-o {color: #888}
+       .unit-u {color: #444}
+       .unit-p {color: #666}
+       .unit-supply {color: #888}
+
+       // distinctions significant in bonus damage
+       .unit-air {color: #AAA}
+       .unit-x {color: #000; text-shadow: #888 0 0 .1em}
+       .unit-s {color: #888}
+       .unit-m {color: #444}
+       .unit-l {color: #222}
+       .unit-h {color: #000}
+
+       tbody .unit-shield {
+               color: #888;
+       }
+       .unit-pdd {
+               color: #666;
+       }
+       .unit-splash {
+               color: #444;
+       }
+       .hurt-a {
+               color: #000;
+       }
+       .hurt-g {
+               color: #000;
+       }
+       .unit-massive {
+               color: #444;
+       }
+       .unit-detect::before {
+               color: #888;
+       }
+       .unit-jump {
+               color: #222;
+       }
+}