50581bb6d4a0f52d2253dfc7f257ddf56c47fad7
[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-jump,
59 .hurt .unit-splash {
60         position: absolute;
61 }
62 td .unit-massive {
63         float: right;
64         width: 0;
65 }
66 .hurtrel, .units .hurtrel {
67         color: #778;
68 }
69 td.hurtrel {
70         padding-left: 1em;
71 }
72 td.unit-shield,
73 td.hurtrel {
74         font-size: 70%;
75 }
76 tbody .unit-shield {
77         color: #64A;
78 }
79 .unit-pdd {
80         color: #A8C;
81 }
82 .unit-splash {
83         color: #4A0;
84 }
85 .hurt-a {
86         color: #036;
87 }
88 .hurt-g {
89         color: #063;
90 }
91 .unit-massive {
92         color: #D88;
93 }
94 .unit-detect::before {
95         content: '!';
96         color: #0A8;
97         font-size: 70%;
98         vertical-align: super;
99 }
100 .unit-jump {
101         margin-left: -.2em;
102         color: #8A4;
103 }
104 .unit-magic {
105         padding-left: 0.5em;
106 }
107 .magic-opt::before {
108         color: #000;
109         content: '(';
110         position: absolute;
111         margin-left: -0.33em;
112 }
113 .magic-opt::after {
114         color: #000;
115         content: ')';
116 }
117 .magic-perma {
118         text-decoration: underline;
119                 text-decoration-color: #8C0;
120            -moz-text-decoration-color: #8C0;
121         -webkit-text-decoration-color: #8C0;
122 }
123
124 .units .val {
125         white-space: nowrap;
126         text-align: right;
127 }
128
129 .legend dt {
130         float: none;
131         text-align: left;
132         margin-top: 1ex;
133         font-weight: bold;
134 }
135 .legend dd:before {
136         content: '• ';
137 }
138 .legend dd {
139         text-indent: -1em;
140         margin-left: 1em;
141 }
142
143 .legend {
144         display: table-cell;
145         min-width: 20em;
146         text-align: left;
147 }
148 .units {
149         float: left;
150         padding-bottom: 1em;
151         margin-right: 2em;
152 }
153