d3e90094875285460d45ac730652b78eb4f77f8e
[heroik.git] / heroik.css
1 /* The person who associated a work with this deed has dedicated the
2 work to the public domain by waiving all of his or her rights to
3 the work worldwide under copyright law, including all related and
4 neighboring rights, to the extent allowed by law.
5
6 You can copy, modify, distribute and perform the work, even for
7 commercial purposes, all without asking permission.
8
9 See https://creativecommons.org/publicdomain/zero/1.0/ for details.
10 */
11
12 @font-face {
13 font-family: Oranienbaum;
14 font-style: normal;
15 font-weight: 400;
16 src: url('Oranienbaum-Regular.woff') format('woff');
17 }
18
19 @font-face {
20 font-family: Cardo;
21 font-style: normal;
22 font-weight: 400;
23 src: url('Cardo-Regular.woff') format('woff');
24 }
25
26 @font-face {
27 font-family: Cardo;
28 font-style: normal;
29 font-weight: 700;
30 src: url('Cardo-Bold.woff') format('woff');
31 }
32
33 @font-face {
34 font-family: Cardo;
35 font-style: italic;
36 font-weight: 400;
37 src: url('Cardo-Italic.woff') format('woff');
38 }
39
40 * {
41 margin: 0;
42 padding: 0;
43 }
44
45 #change {
46 position: relative;
47 top: 1em;
48 }
49
50 ul {
51 margin-left: 1em;
52 margin-bottom: 1em;
53 }
54
55 ul.cards {
56 list-style-type: none;
57 display: inline-block;
58 margin: auto;
59 }
60
61 html {
62 font-family: Cardo, serif;
63 font-size: 20px;
64 background-color: black;
65 min-height: 100%;
66 height: 100%;
67 }
68
69 @media (max-width: 639px) {
70 html { font-size: 14px; }
71 }
72
73 body {
74 background-color: black;
75 min-height: 100%;
76 height: 100%;
77 box-sizing: border-box;
78 }
79
80 body.standalone {
81 padding-top: 20px;
82 }
83
84 main {
85 background-color: white;
86 max-width: 25.2em;
87 margin: 0 auto;
88 padding: 1em;
89 display: block;
90 min-height: 100%;
91 box-sizing: border-box;
92 }
93
94 body.standalone main {
95 padding-top: 0.5em;
96 }
97
98 table {
99 border-collapse: collapse;
100 margin: auto;
101 max-width: 25em;
102 }
103
104 table.tall td {
105 padding-top: 0.125em;
106 padding-bottom: 0.125em;
107 }
108
109 thead {
110 font-size: 0.8em;
111 font-variant: small-caps;
112 vertical-align: bottom;
113 text-align: left;
114 }
115
116 th {
117 font-weight: bold;
118 }
119
120 tbody, tfoot {
121 vertical-align: top;
122 text-align: left;
123 }
124
125
126 tbody tr:nth-last-child(odd) {
127 background-color: hsl(270, 30%, 85%);
128 }
129
130 #fate th:first-child, #fate td:first-child {
131 text-align: center;
132 width: 2em;
133 }
134
135 #abilities td {
136 text-align: justify;
137 -webkit-hyphens: auto;
138 -moz-hyphens: auto;
139 -ms-hyphens: auto;
140 hyphens: auto;
141 }
142
143 #abilities td:first-child {
144 white-space: nowrap;
145 }
146
147
148 th, td {
149 padding: 0 0.5rem;
150 }
151
152 h1:before {
153 content: '\25cf';
154 color: #dae9bc;
155 text-shadow: -0.08333em -0.08333em 0.25em #aec38b,
156 0.08333em -0.08333em 0.25em #aec38b,
157 0.08333em 0.08333em 0 #534f53,
158 -0.08333em 0.08333em 0 #534f53,
159 0 0.1667em 0 #414045;
160 -webkit-text-stroke: 0;
161 display: inline-block;
162 width: 1em;
163 margin-top: -0.1em;
164 vertical-align: top;
165 margin-left: -1em;
166 }
167
168 h1 {
169 padding-left: 1em;
170 margin-top: 1em;
171 margin-bottom: 0.5em;
172 font-family: Oranienbaum, Cardo, serif;
173 color: hsl(270, 25%, 75%);
174 font-size: 2em;
175 text-shadow: none;
176 border-bottom: solid hsl(270, 25%, 50%) 0.0625em;
177 line-height: 0.8em;
178 font-weight: normal;
179 text-shadow: -1px 0 black, 1px 0 black,
180 0 1px black, 0 -1px black,
181 -0.707px -0.707px black, 0.707px 0.707px black,
182 -0.707px 0.707px black, 0.707px -0.707px black;
183 }
184
185 h1:first-child {
186 margin-top: 0;
187 }
188
189 h2:before {
190 content: '\25fc';
191 color: #00a1eb;
192 font-size: 1.5em;
193 width: 0.55em;
194 display: inline-block;
195 }
196
197 h2 {
198 height: 1.15em;
199 font-size: 1.25em;
200 font-family: Oranienbaum, Cardo, serif;
201 text-align: left;
202 letter-spacing: -1px;
203 z-index: 1;
204 border-bottom: solid hsl(270, 30%, 85%) 0.25em;
205 padding-right: 1em;
206 white-space: nowrap;
207 margin-bottom: 0.5em;
208 font-weight: bold;
209 }
210
211 a:link, a:visited, a:active {
212 color: hsl(270, 25%, 50%);
213 font-weight: bold;
214 text-decoration: none;
215 }
216
217 .fate-name { font-weight: bold; }
218 .fate-effect { font-style: italic; font-size: 0.95em; }
219 .fate-action { font-size: 0.95em; }
220
221 input[type=checkbox] {
222 margin-right: 0.5em;
223 }
224
225 .button {
226 font-size: 1.1em;
227 font-weight: bold;
228 color: black !important;
229 background-color: hsl(270, 30%, 85%);
230 margin: 0.0625em 0;
231 padding: 0.375em 0.5em;
232 display: inline-block;
233 border-radius: 0 0.5em 0 0.5em;
234 transition: box-shadow 0.167s, border-color 0.167s, opacity 0.333s;
235 -webkit-transition: box-shadow 0.167s, border-color 0.167s, opacity 0.333s;
236 box-shadow: 0.125em 0.125em 0.25em 0.0625em #aaa;
237 border: solid hsl(270, 30%, 85%) 1px;
238 min-width: 6em;
239 }
240
241 .button.small {
242 min-width: 1.25em;
243 }
244
245 .button:hover, .button:focus {
246 box-shadow: 0.125em 0.125em 0.25em 0.0625em #888;
247 border-color: hsl(270, 25%, 50%);
248 }
249
250 .button:active {
251 box-shadow: 0.0625em 0.0625em 0.0625em 0.0625em #888;
252 }
253
254 main > div {
255 text-align: center;
256 margin-bottom: 1rem;
257 }
258
259 ul.cards li {
260 padding: 0.25em 0;
261 display: inline-block;
262 width: 8em;
263 }
264
265 select {
266 -webkit-appearance: none;
267 -moz-appearance: none;
268 appearance: none;
269 font-family: Cardo, serif;
270 font-size: 1.1em;
271 margin-top: 0.5em;
272 width: 60%;
273 margin-left: 20%;
274 padding: 0 0.5em;
275 border: solid hsl(270, 30%, 85%) 1px;
276 border-radius: 0 0.5em 0 0.5em;
277 background-color: hsl(270, 30%, 85%);
278 box-shadow: 0.125em 0.125em 0.25em 0.0625em #aaa;
279 transition: box-shadow 0.167s, border-color 0.167s;
280 -webkit-transition: box-shadow 0.167s, border-color 0.167s;
281 text-align:-webkit-center !important;
282 font-weight: bold;
283 }
284
285 select:hover, select:focus {
286 box-shadow: 0.125em 0.125em 0.25em 0.0625em #888;
287 border-color: hsl(270, 25%, 50%);
288 outline: none;
289 }
290
291 select:active {
292 box-shadow: 0.0625em 0.0625em 0.0625em 0.0625em #888;
293 outline: none;
294 }
295
296 option {
297 -webkit-appearance: none;
298 -moz-appearance: none;
299 appearance: none;
300 font-family: Cardo, serif;
301 background-color: white;
302 text-align: center;
303 font-weight: normal;
304 }
305
306 p, li {
307 text-align: justify;
308 -webkit-hyphens: auto;
309 -moz-hyphens: auto;
310 -ms-hyphens: auto;
311 hyphens: auto;
312 }
313
314 p {
315 margin-bottom: 0.5em;
316 }
317
318 blockquote {
319 text-align: justify;
320 font-style: italic;
321 margin-left: 1em;
322 margin-right: 1em;
323 margin-bottom: 0.5em;
324 font-size: 0.95em;
325 }
326
327 @keyframes row-content-in {
328 0% { max-height: 0; opacity: 0; }
329 50% { max-height: 10em; }
330 100% { opacity: 1; }
331 }
332 @-webkit-keyframes row-content-in {
333 0% { max-height: 0; opacity: 0; }
334 50% { max-height: 10em; }
335 100% { opacity: 1; }
336 }
337
338 table {
339 width: 100%;
340 }
341
342 #fate tbody tr div {
343 max-height: 10em;
344 animation: row-content-in 0.6667s;
345 -webkit-animation: row-content-in 0.6667s;
346 }
347
348 #fate tbody ~ tfoot {
349 transition: opacity 0.3333s, visibility 0s 0.3333s;
350 -webkit-transition: opacity 0.3333s, visibility 0s 0.3333s;
351 opacity: 0;
352 visibility: hidden;
353 }
354
355 #fate tbody:empty ~ tfoot {
356 opacity: 1;
357 visibility: visible;
358 }
359
360 .button.big {
361 display: block;
362 width: 80%;
363 margin: 1em auto;
364 }
365
366 .card1 {
367 width: 2.5em;
368 background-color: white;
369 display: inline-block;
370 margin: 0.2em 0.375em;
371 border: solid 1px black;
372 }
373
374 .card2 {
375 width: 2.5em;
376 background-color: black;
377 display: inline-block;
378 margin: 0.2em 0.375em;
379 border: solid 1px black;
380 color: white;
381 }
382
383 #statusbar {
384 display: none;
385 position: fixed;
386 left: 0;
387 top: 0;
388 right: 0;
389 height: 20px;
390 background-color: black;
391 }
392
393 body.standalone #statusbar {
394 display: block;
395 }
396
397 h1, h2, [onclick], label {
398 -webkit-user-select: none;
399 -moz-user-select: none;
400 user-select: none;
401 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
402 cursor: default;
403 }
404
405 [onclick], select, label {
406 cursor: pointer;
407 }
408
409 td:target {
410 font-weight: bold;
411 }
412
413 @media print {
414
415 @page {
416 size: 3.5in 7in;
417 margin: 0.5em;
418 }
419 .no-print {
420 display: none !important;
421 }
422
423 body, html {
424 background-color: white;
425 font-size: 10pt;
426 }
427
428 main {
429 max-width: 3.5in;
430 }
431 }
432
433 @media screen and (-webkit-min-device-pixel-ratio:0) {
434 h1 {
435 text-shadow: none;
436 -webkit-text-stroke: 1px black;
437 latter-spacing: -1px;
438 }
439
440 .broken-on-webkit {
441 display: none !important;
442 }
443
444 }