Allow for different styles.
margin-top: 1em;
}
+.units tbody tr:hover:not(.race) {
+ background: #EEE;
+}
+.unit-gas {
+ color: #040;
+}
+.unit-min, .unit-min a:not(:hover) {
+ color: #004;
+}
+.unit-supply {
+ color: #080;
+}
+.unit-o {color: #C08} /* organic */
+.unit-u {color: #44C} /* mechanic */
+.unit-p {color: #0A8} /* psionic */
+.unit-composed {
+ color: #C88;
+}
+.unit-air {
+ color: #08C;
+}
+.unit-x {color: #888}
+.unit-s {color: #890}
+.unit-m {color: #C70}
+.unit-l {color: #D22}
+.unit-h {color: #804}
+.magic-opt:before,
+.magic-opt:after {
+ color: #000;
+}
+.hurtrel, .units .hurtrel {
+ color: #778;
+}
+tbody .unit-shield {
+ color: #64A;
+}
+.unit-pdd {
+ color: #A8C;
+}
+.unit-splash {
+ color: #4A0;
+}
+.hurt-a {
+ color: #036;
+}
+.hurt-g {
+ color: #063;
+}
+.unit-massive {
+ color: #D88;
+}
+.unit-detect::before {
+ color: #0A8;
+}
+.unit-jump {
+ color: #8A4;
+}
+body .magic-perma {
+ text-decoration-color: #8C0;
+ -moz-text-decoration-color: #8C0;
+ -webkit-text-decoration-color: #8C0;
+}
+
/* printing hints */
@page {
.units tr th:first-child {
padding-left: 0;
}
-.units tbody tr:hover:not(.race) {
- background: #EEE;
-}
table h2 {
padding: 1ex 0;
.units td.unit + td.unit {
padding-left: 0;
}
-.unit-gas {
- color: #040;
-}
-.unit-min, .unit-min a:not(:hover) {
- color: #004;
-}
-.unit-supply {
- color: #080;
-}
-.unit-o {color: #C08} /* organic */
-.unit-u {color: #44C} /* mechanic */
-.unit-p {color: #0A8} /* psionic */
.unit-composed {
- color: #C88;
font-size: 70%;
}
-.unit-air {
- color: #08C;
-}
-.unit-x {color: #888}
-.unit-s {color: #890}
-.unit-m {color: #C70}
-.unit-l {color: #D22}
-.unit-h {color: #804}
td .unit-jump,
.hurt .unit-splash {
position: absolute;
float: right;
width: 0;
}
-.hurtrel, .units .hurtrel {
- color: #778;
-}
td.hurtrel {
padding-left: 1em;
}
td.hurtrel {
font-size: 70%;
}
-tbody .unit-shield {
- color: #64A;
-}
-.unit-pdd {
- color: #A8C;
-}
-.unit-splash {
- color: #4A0;
-}
-.hurt-a {
- color: #036;
-}
-.hurt-g {
- color: #063;
-}
-.unit-massive {
- color: #D88;
-}
.unit-detect::before {
content: '!';
- color: #0A8;
font-size: 70%;
vertical-align: super;
}
.unit-jump {
margin-left: -.2em;
- color: #8A4;
}
.unit-magic {
padding-left: 0.5em;
}
-.magic-opt::before {
- color: #000;
+.magic-opt:before {
content: '(';
position: absolute;
margin-left: -0.33em;
}
-.magic-opt::after {
- color: #000;
+.magic-opt:after {
content: ')';
}
.magic-perma {
text-decoration: underline;
- text-decoration-color: #8C0;
- -moz-text-decoration-color: #8C0;
- -webkit-text-decoration-color: #8C0;
}
.units .val {
Html({
title => "$scver{title} unit cheat sheet",
- version => '1.1',
+ version => '1.2',
description => [
"Reference of $scver{game} unit properties,"
. " comparing various statistics of all the units in $scver{name}"
qw' starcraft2 lotv hots wol ',
],
stylesheet => [qw'light'],
- raw => '<link rel="stylesheet" type="text/css" media="all" href="/sc.css?1.1" title="light">',
+ raw => '<link rel="stylesheet" type="text/css" media="all" href="/sc.css?1.2">',
data => [$datafile],
});