10e958cdf03d72ae8051eeb77aa5cb5c1b48f88a
[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-o {color: #C08} /* organic */
41 .unit-u {color: #44C} /* mechanic */
42 .unit-p {color: #0A8} /* psionic */
43 .unit-composed {
44         color: #C88;
45         font-size: 70%;
46 }
47 .unit-s {color: #770}
48 .unit-m {color: #C70}
49 .unit-l {color: #D22}
50 .unit-h {color: #804}
51 td .unit-massive,
52 td .unit-jump,
53 .hurt .unit-splash {
54         position: absolute;
55 }
56 .hurtrel, .units .hurtrel {
57         color: #778;
58 }
59 td.hurtrel {
60         padding-left: 1em;
61 }
62 td.unit-shield,
63 td.hurtrel {
64         font-size: 70%;
65 }
66 tbody .unit-shield {
67         color: #46A;
68 }
69 .unit-pdd {
70         color: #A8C;
71 }
72 .unit-splash {
73         color: #4A0;
74 }
75 .unit-massive {
76         color: #D88;
77 }
78 .unit-detect::before {
79         content: '!';
80         color: #0A8;
81         font-size: 70%;
82         vertical-align: super;
83 }
84 .unit-jump {
85         margin-left: -.2em;
86         color: #8A4;
87 }
88 .unit-magic {
89         padding-left: 0.5em;
90 }
91 .magic-perma {
92         text-decoration: underline;
93 }
94
95 .units .val {
96         white-space: nowrap;
97         text-align: right;
98 }
99
100 .legend dt {
101         float: none;
102         text-align: left;
103         margin-top: 1ex;
104         font-weight: bold;
105 }
106 .legend dd:before {
107         content: '• ';
108 }
109 .legend dd {
110         text-indent: -1em;
111         margin-left: 1em;
112 }
113
114 .legend {
115         display: table-cell;
116         min-width: 20em;
117         text-align: left;
118 }
119 .units {
120         float: left;
121         padding-bottom: 1em;
122         margin-right: 2em;
123 }
124