sc: dark colour style
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 23 Apr 2018 16:59:50 +0000 (18:59 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 10 May 2018 14:49:06 +0000 (16:49 +0200)
dark.css
sc.plp

index 50ba18415fda2ebcce41f303eeb04bc9b060f6d2..243960c3fb248497ef9ad551fed8324f35e6f982 100644 (file)
--- a/dark.css
+++ b/dark.css
@@ -108,6 +108,71 @@ th, td {
 .legend .ex:hover {background: #666}
 .X:hover small {color: #FFF}
 
+/* starcraft */
+
+.units tbody tr:hover:not(.race) {
+       background: #222;
+}
+.unit-gas {
+       color: #AC9;
+}
+.unit-min, .unit-min a:not(:hover) {
+       color: #ABC;
+}
+.unit-supply {
+       color: #8C6;
+}
+.unit-o {color: #C5A} /* organic */
+.unit-u {color: #66B} /* mechanic */
+.unit-p {color: #0A8} /* psionic */
+.unit-composed {
+       color: #A44;
+}
+.unit-air {
+       color: #4AC;
+}
+.unit-x {color: #666}
+.unit-s {color: #AC6}
+.unit-m {color: #C70}
+.unit-l {color: #C44}
+.unit-h {color: #C06}
+.magic-opt:before,
+.magic-opt:after {
+       color: #CCC;
+}
+.hurtrel, .units .hurtrel {
+       color: #887;
+}
+tbody .unit-shield {
+       color: #88A;
+}
+.unit-pdd {
+       color: #A8C;
+}
+.unit-splash {
+       color: #4A0;
+}
+.hurt-a {
+       color: #8AC;
+}
+.hurt-g {
+       color: #8CA;
+}
+.unit-massive {
+       color: #844;
+}
+.unit-detect::before {
+       color: #0A8;
+}
+.unit-jump {
+       color: #780;
+}
+body .magic-perma {
+               text-decoration-color: #460;
+          -moz-text-decoration-color: #460;
+       -webkit-text-decoration-color: #460;
+}
+
 /* keyboard */
 
 @media (max-width: 79em) {
diff --git a/sc.plp b/sc.plp
index c929c9abfb1a4032d516a8167015799a9bd5787e..c969185d560e93b62cdf9ba050f8a15ae36f13cc 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -45,7 +45,7 @@ Html({
                $scver{major} < 2 ? qw' bw broodwar brood war ' :
                qw' starcraft2 lotv hots wol ',
        ],
-       stylesheet => [qw'light'],
+       stylesheet => [qw( light dark )],
        raw => '<link rel="stylesheet" type="text/css" media="all" href="/sc.css?1.2">',
        data => [$datafile],
 });