countries: mark .Xi tiles as organisations
[sheet.git] / sc.plp
diff --git a/sc.plp b/sc.plp
index 0c584a74cf5825b13dff0a197546b883dcbe38be..8251f7504db7e4b29853188c8daad820b1c936ef 100644 (file)
--- a/sc.plp
+++ b/sc.plp
@@ -28,6 +28,7 @@ Unit properties as seen or measured in Brood War
                border-collapse: separate;
                border-spacing: 0;
                margin: 0 auto;
+               white-space: nowrap;
        }
        .units th, .units td {
                border: 0;
@@ -106,12 +107,6 @@ Unit properties as seen or measured in Brood War
                text-align: right;
        }
 
-       .legend dl {
-               text-align: left;
-               column-width: 20em;
-               -moz-column-width: 20em;
-               -webkit-column-width: 20em;
-       }
        .legend dt {
                float: none;
                text-align: left;
@@ -127,6 +122,15 @@ Unit properties as seen or measured in Brood War
                break-before: avoid;
                -webkit-column-break-before: avoid;
        }
+
+       .units, .legend {
+               display: table-cell;
+       }
+       .legend {
+               min-width: 15em;
+               padding-left: 2em;
+               text-align: left;
+       }
 </style>
 
 <:
@@ -142,8 +146,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"><img src="/minerals.png" alt="min"></th>
+       <th class="val gas"><img src="/gas.png" alt="gas"></th>
        <th class="val time"><:= coltoggle(qw'build cost') :></th>
        <th class="unit" colspan="2"><:= coltoggle(qw'size size') :></th>
        <th class="val unit-hp">HP</th>
@@ -270,10 +274,10 @@ sub showrange {
                        '<td class="val unit">' . join('',
                                $_->{unit} ? $_->{unit} == .5 ? '½' : $_->{unit} : '&nbsp;',
                                defined $_->{organic} && sprintf(
-                                       '<img class="unit-%s" src="s%s.png" alt="%s">',
+                                       '<span class="unit-%s" title="%s">%s</span>',
                                        $_->{organic} ? 'o' : 'u',
-                                       $_->{race} . ($_->{organic} ? 'o' : ''),
-                                       $_->{organic} ? 'o' : 'm'
+                                       $_->{organic} ? 'organic' : 'mechanic',
+                                       $_->{organic} ? 'o' : 'm',
                                ),
                        ),
                        '<td class="val unit-hp">' . $_->{hp},