sc: drop cost images in favour of color styling
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 23 Jun 2015 18:38:14 +0000 (20:38 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 1 Jul 2015 17:32:34 +0000 (19:32 +0200)
All text in header row, with columns slightly colorised to make meaning
self-evident.

gas.png [deleted file]
minerals.png [deleted file]
sc.css
sc.plp

diff --git a/gas.png b/gas.png
deleted file mode 100644 (file)
index c0a6acc..0000000
Binary files a/gas.png and /dev/null differ
diff --git a/minerals.png b/minerals.png
deleted file mode 100644 (file)
index 4eae481..0000000
Binary files a/minerals.png and /dev/null differ
diff --git a/sc.css b/sc.css
index 50581bb6d4a0f52d2253dfc7f257ddf56c47fad7..9aba72854702d34218518b6f45d131e1d2810a2c 100644 (file)
--- a/sc.css
+++ b/sc.css
@@ -37,6 +37,12 @@ table h2 {
 .units td.unit + td.unit {
        padding-left: 0;
 }
+.gas {
+       color: #040;
+}
+.min {
+       color: #004;
+}
 .unit-supply {
        color: #080;
 }
diff --git a/sc.plp b/sc.plp
index ec79a7c310550e7d4bdd040673fe95500bd8ceb5..5d82a8d0ba657cb66c1d525c1c900f5f854d32cb 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -95,8 +95,8 @@ sub coltoggle {
 <thead><tr>
        <th></th>
        <th><:= coltoggle('name', '') :></th>
-       <th class="val min"><img src="/minerals.png" alt="min"></th>
-       <th class="val gas"><img src="/gas.png" alt="gas"></th>
+       <th class="val min" title=minerals>cost</th>
+       <th class="val gas">gas</th>
        <th class="val time"><:= coltoggle(qw'build cost') :></th>
        <th class="unit" colspan="2"><:= coltoggle(qw'size size') :></th>
        <th class="unit" colspan="2">attr</th>