b8e3981e8fa188515f1d277967f4473489c65a63
[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.unit-s {color: #770}
48 .unit.unit-m {color: #C70}
49 .unit.unit-l {color: #D22}
50 .hurt.unit-s::before {
51         content: '~';
52         color: #773;
53 }
54 .hurt.unit-l::before {
55         content: '*';
56         color: #C66;
57 }
58 .unit-massive,
59 .hurt .unit-splash {
60         position: absolute;
61 }
62 .hurtrel, .units .hurtrel {
63         padding-left: 1em;
64         font-size: 70%;
65         color: #778;
66 }
67 .unit-splash {
68         color: #4A0;
69 }
70 .unit-massive {
71         color: #A76;
72 }
73 .unit-detect::before {
74         content: '!';
75         color: #0A8;
76         font-size: 70%;
77         vertical-align: super;
78 }
79 .unit-magic {
80         padding-left: 0.5em;
81 }
82 .magic-perma {
83         text-decoration: underline;
84 }
85
86 .units .val {
87         white-space: nowrap;
88         text-align: right;
89 }
90
91 .legend dt {
92         float: none;
93         text-align: left;
94         margin-top: 1ex;
95         font-weight: bold;
96 }
97 .legend dd:before {
98         content: '• ';
99 }
100 .legend dd {
101         text-indent: -1em;
102         margin-left: 1em;
103 }
104
105 .legend {
106         display: table-cell;
107         min-width: 20em;
108         text-align: left;
109 }
110 .units {
111         float: left;
112         padding-bottom: 1em;
113         margin-right: 2em;
114 }
115