sc: convert 'organic' bw data fields to attr options
[sheet.git] / sc.css
1 .units {
2         border-collapse: separate;
3         border-spacing: 0;
4         margin: 0 auto;
5         white-space: nowrap;
6 }
7 .units th, .units td {
8         border: 0;
9         padding: 0 0.2em;
10         background: transparent;
11         text-align: left;
12 }
13 tr.alt td {
14         font-size: 70%;
15         padding-left: 0.5em;
16 }
17 .units tr th:first-child {
18         padding-left: 0;
19 }
20 .units tbody tr:hover:not(.race) {
21         background: #EEE;
22 }
23
24 table h2 {
25         padding: 1ex 0;
26         margin: 0;
27         text-align: center;
28 }
29 .units thead th, .units tfoot th {
30         font-size: 70%;
31         font-weight: normal;
32 }
33
34 .units td.unit {
35         padding-right: 0;
36 }
37 .units td.unit + td.unit {
38         padding-left: 0;
39 }
40 .unit-supply {
41         color: #080;
42 }
43 .unit-o {color: #C08} /* organic */
44 .unit-u {color: #44C} /* mechanic */
45 .unit-p {color: #0A8} /* psionic */
46 .unit-composed {
47         color: #C88;
48         font-size: 70%;
49 }
50 .unit-air {
51         color: #08C;
52 }
53 .unit-x {color: #888}
54 .unit-s {color: #890}
55 .unit-m {color: #C70}
56 .unit-l {color: #D22}
57 .unit-h {color: #804}
58 td .unit-massive,
59 td .unit-jump,
60 .hurt .unit-splash {
61         position: absolute;
62 }
63 .hurtrel, .units .hurtrel {
64         color: #778;
65 }
66 td.hurtrel {
67         padding-left: 1em;
68 }
69 td.unit-shield,
70 td.hurtrel {
71         font-size: 70%;
72 }
73 tbody .unit-shield {
74         color: #64A;
75 }
76 .unit-pdd {
77         color: #A8C;
78 }
79 .unit-splash {
80         color: #4A0;
81 }
82 .hurt-a {
83         color: #036;
84 }
85 .hurt-g {
86         color: #063;
87 }
88 .unit-massive {
89         color: #D88;
90 }
91 .unit-detect::before {
92         content: '!';
93         color: #0A8;
94         font-size: 70%;
95         vertical-align: super;
96 }
97 .unit-jump {
98         margin-left: -.2em;
99         color: #8A4;
100 }
101 .unit-magic {
102         padding-left: 0.5em;
103 }
104 .magic-opt::before {
105         color: #000;
106         content: '(';
107         position: absolute;
108         margin-left: -0.33em;
109 }
110 .magic-opt::after {
111         color: #000;
112         content: ')';
113 }
114 .magic-perma {
115         text-decoration: underline;
116                 text-decoration-color: #8C0;
117            -moz-text-decoration-color: #8C0;
118         -webkit-text-decoration-color: #8C0;
119 }
120
121 .units .val {
122         white-space: nowrap;
123         text-align: right;
124 }
125
126 .legend dt {
127         float: none;
128         text-align: left;
129         margin-top: 1ex;
130         font-weight: bold;
131 }
132 .legend dd:before {
133         content: '• ';
134 }
135 .legend dd {
136         text-indent: -1em;
137         margin-left: 1em;
138 }
139
140 .legend {
141         display: table-cell;
142         min-width: 20em;
143         text-align: left;
144 }
145 .units {
146         float: left;
147         padding-bottom: 1em;
148         margin-right: 2em;
149 }
150