Cost icons.
[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 letter-spacing: -0.02em;
180 text-shadow: -1px 0 black, 1px 0 black,
181 0 1px black, 0 -1px black,
182 -0.707px -0.707px black, 0.707px 0.707px black,
183 -0.707px 0.707px black, 0.707px -0.707px black;
184 }
185
186 h1:first-child {
187 margin-top: 0;
188 }
189
190 h2:before {
191 content: '\25fc';
192 color: #00a1eb;
193 font-size: 1.5em;
194 width: 0.55em;
195 display: inline-block;
196 }
197
198 h2 {
199 height: 1.15em;
200 font-size: 1.25em;
201 font-family: Oranienbaum, Cardo, serif;
202 text-align: left;
203 letter-spacing: -1px;
204 z-index: 1;
205 border-bottom: solid hsl(270, 30%, 85%) 0.25em;
206 padding-right: 1em;
207 white-space: nowrap;
208 margin-bottom: 0.5em;
209 font-weight: bold;
210 }
211
212 a:link, a:visited, a:active {
213 color: hsl(270, 25%, 50%);
214 font-weight: bold;
215 text-decoration: none;
216 }
217
218 .fate-name { font-weight: bold; }
219 .fate-effect { font-style: italic; font-size: 0.95em; }
220 .fate-action { font-size: 0.95em; }
221
222 input[type=checkbox] {
223 margin-right: 0.5em;
224 }
225
226 .button {
227 font-size: 1.1em;
228 font-weight: bold;
229 color: black !important;
230 background-color: hsl(270, 30%, 85%);
231 margin: 0.0625em 0;
232 padding: 0.375em 0.5em;
233 display: inline-block;
234 border-radius: 0 0.5em 0 0.5em;
235 transition: box-shadow 0.167s, border-color 0.167s, opacity 0.333s;
236 -webkit-transition: box-shadow 0.167s, border-color 0.167s, opacity 0.333s;
237 box-shadow: 0.125em 0.125em 0.25em 0.0625em #aaa;
238 border: solid hsl(270, 30%, 85%) 1px;
239 min-width: 6em;
240 }
241
242 .button.small {
243 min-width: 1.25em;
244 }
245
246 .button:hover, .button:focus {
247 box-shadow: 0.125em 0.125em 0.25em 0.0625em #888;
248 border-color: hsl(270, 25%, 50%);
249 }
250
251 .button:active {
252 box-shadow: 0.0625em 0.0625em 0.0625em 0.0625em #888;
253 }
254
255 main > div, main > noscript {
256 text-align: center;
257 margin-bottom: 1rem;
258 display: block;
259 }
260
261 ul.cards li {
262 padding: 0.25em 0;
263 display: inline-block;
264 width: 8em;
265 }
266
267 select {
268 -webkit-appearance: none;
269 -moz-appearance: none;
270 appearance: none;
271 font-family: Cardo, serif;
272 font-size: 1.1em;
273 margin-top: 0.5em;
274 width: 60%;
275 margin-left: 20%;
276 padding: 0 0.5em;
277 border: solid hsl(270, 30%, 85%) 1px;
278 border-radius: 0 0.5em 0 0.5em;
279 background-color: hsl(270, 30%, 85%);
280 box-shadow: 0.125em 0.125em 0.25em 0.0625em #aaa;
281 transition: box-shadow 0.167s, border-color 0.167s;
282 -webkit-transition: box-shadow 0.167s, border-color 0.167s;
283 text-align:-webkit-center !important;
284 font-weight: bold;
285 }
286
287 select:hover, select:focus {
288 box-shadow: 0.125em 0.125em 0.25em 0.0625em #888;
289 border-color: hsl(270, 25%, 50%);
290 outline: none;
291 }
292
293 select:active {
294 box-shadow: 0.0625em 0.0625em 0.0625em 0.0625em #888;
295 outline: none;
296 }
297
298 option {
299 -webkit-appearance: none;
300 -moz-appearance: none;
301 appearance: none;
302 font-family: Cardo, serif;
303 background-color: white;
304 text-align: center;
305 font-weight: normal;
306 }
307
308 p, li {
309 text-align: justify;
310 -webkit-hyphens: auto;
311 -moz-hyphens: auto;
312 -ms-hyphens: auto;
313 hyphens: auto;
314 }
315
316 p {
317 margin-bottom: 0.5em;
318 }
319
320 blockquote {
321 text-align: justify;
322 font-style: italic;
323 margin-left: 1em;
324 margin-right: 1em;
325 margin-bottom: 0.5em;
326 font-size: 0.95em;
327 }
328
329 @keyframes row-content-in {
330 0% { max-height: 0; opacity: 0; }
331 50% { max-height: 10em; }
332 100% { opacity: 1; }
333 }
334 @-webkit-keyframes row-content-in {
335 0% { max-height: 0; opacity: 0; }
336 50% { max-height: 10em; }
337 100% { opacity: 1; }
338 }
339
340 table {
341 width: 100%;
342 }
343
344 #fate tbody tr div {
345 max-height: 10em;
346 animation: row-content-in 0.6667s;
347 -webkit-animation: row-content-in 0.6667s;
348 }
349
350 #fate tbody ~ tfoot {
351 transition: opacity 0.3333s, visibility 0s 0.3333s;
352 -webkit-transition: opacity 0.3333s, visibility 0s 0.3333s;
353 opacity: 0;
354 visibility: hidden;
355 }
356
357 #fate tbody:empty ~ tfoot {
358 opacity: 1;
359 visibility: visible;
360 }
361
362 .button.big {
363 display: inline-block;
364 width: 35%;
365 padding-top: 1em;
366 padding-bottom: 1em;
367 margin: 0.5em 0.5em;
368 }
369
370 .card1 {
371 width: 2.5em;
372 background-color: white;
373 display: inline-block;
374 margin: 0.2em 0.375em;
375 border: solid 1px black;
376 }
377
378 .card2 {
379 width: 2.5em;
380 background-color: black;
381 display: inline-block;
382 margin: 0.2em 0.375em;
383 border: solid 1px black;
384 color: white;
385 }
386
387 .card {
388 display: block;
389 position: relative;
390 width: 20em;
391 height: 27.1875em;
392 font-size: 88.275%;
393 margin: 0.5em auto;
394 z-index: 1;
395 }
396
397
398 .card:after {
399 content: '';
400 display: block;
401 position:absolute;
402 width:100%;
403 height:100%;
404 left:0;
405 top:0;
406 background-image: url(card.png);
407 background-size: cover;
408 z-index: -1;
409 }
410
411 .card .art {
412 position: absolute;
413 z-index: -1;
414 left: 9.5%;
415 right: 9.5%;
416 width: 81%;
417 height: auto;
418 top: 7.1%;
419 }
420
421 .card.adventurer .name, .card.adventurer .type {
422 background-color: #4ba12f;
423 }
424
425 .card.object .name, .card.object .type {
426 background-color: #cdab4c;
427 }
428
429 .card .name {
430 position: absolute;
431 color: white;
432 text-align: center;
433 width: 77%;
434 border: solid white 0.1em;
435 border-radius: 0.6em;
436 line-height: 1.6em;
437 height: 5.4%;
438 font-size: 0.85em;
439 left: 11.5%;
440 right: 11.5%;
441 top: 3.5%;
442 box-sizing: border-box;
443 text-shadow: -1px -1px rgba(0, 0, 0, 0.75),
444 1px -1px rgba(0, 0, 0, 0.75),
445 -1px 1px rgba(0, 0, 0, 0.75),
446 1px 1px rgba(0, 0, 0, 0.75),
447 1px 0 black,
448 -1px 0 black,
449 0 1px black,
450 0 -1px black;
451 }
452
453 .card .type {
454 color: black;
455 letter-spacing: 0.05em;
456 font-weight: bold;
457 text-shadow: -0.707px -0.707px rgba(255, 255, 255, 0.75),
458 0.707px -0.707px rgba(255, 255, 255, 0.75),
459 -0.707px 0.707px rgba(255, 255, 255, 0.75),
460 0.707px 0.707px rgba(255, 255, 255, 0.75),
461 1px 0 white,
462 -1px 0 white,
463 0 1px white,
464 0 -1px white;
465 text-align: left;
466 margin: auto;
467 position: absolute;
468 height: 2.55%;
469 width: 84%;
470 left: 8%;
471 top: 52.3333%;
472 box-sizing: border-box;
473 padding-left: 0.6667em;
474 font-size: 0.575em;
475 line-height: 1.25em;
476 box-shadow: inset 0 0 0.25em black;
477 }
478
479 .card .gender {
480 position: absolute;
481 height: 9%;
482 top: 47.5%;
483 right: 8.5%;
484 }
485
486 .card .gender img {
487 float: right;
488 height: 100%;
489 }
490
491 .card .abilities {
492 text-align: left;
493 position: absolute;
494 top: 57%;
495 bottom: 8%;
496 left: 10%;
497 right: 10%;
498 font-size: 0.8em;
499 line-height: 1.05em;
500 padding-left: 1em;
501 }
502
503 .card .cost span {
504 position: relative;
505 content: ' ';
506 width: 1.5em;
507 height: 1.5em;
508 border-radius: 1.5em;
509 display: inline-block;
510 box-sizing: border-box;
511 margin: 0.5em 0.05em;
512 box-shadow: 0 0 0.05em 0.05em black;
513 background-image: url(sword.png);
514 background-size: 0.2778em 1.3em;
515 background-position: center;
516 background-repeat: no-repeat;
517 text-align: center;
518 }
519
520 .card .cost span:before, .card .cost span:after {
521 position: absolute;
522 line-height: 1.333em;
523 width: 1.5em;
524 height: 1.5em;
525 display: block;
526 transform-origin: 50% 65%;
527 background-image: url(sword.png);
528 background-size: 0.2778em 1.3em;
529 background-position: center;
530 background-repeat: no-repeat;
531 }
532
533 .card .cost .r:before {
534 transform: rotate(30deg);
535 -webkit-transform: rotate(30deg);
536 content: '';
537 }
538
539 .card .cost .r img {
540 /* :( would prefer with no extra elements... */
541 transform: rotate(60deg);
542 max-width: 1.3em;
543 position: absolute;
544 max-height: 1.3em;
545 transform-origin: 50% 65%;
546 left: 0.6em;
547 top: 0.1em;
548 }
549
550 .card .cost .r:after {
551 transform: rotate(-30deg);
552 -webkit-transform: rotate(-30deg);
553 content: '';
554 }
555
556 .card .cost .r {
557 transform: rotate(-15deg);
558 background-color: #e4573c;
559 }
560 .card .cost .g {
561 background-color: #abbc45;
562 }
563
564 .card .abilities .skill:before {
565 content: "Skill: ";
566 font-weight: bold;
567 margin-left: -1em;
568 }
569
570 .card .abilities .temporary:before {
571 content: "Temporary power: ";
572 font-weight: bold;
573 margin-left: -1em;
574 }
575
576 .card .abilities .ultimate:before {
577 content: "Ultimate power: ";
578 font-weight: bold;
579 margin-left: -1em;
580 }
581
582 .card .effect {
583 text-align: center;
584 position: absolute;
585 top: 59%;
586 bottom: 8%;
587 left: 15%;
588 width: 70%;
589 font-size: 0.8em;
590 line-height: 1.05em;
591 }
592
593 .card .flavor:before { content: "«"; }
594 .card .flavor:after { content: "»"; }
595 .card .flavor {
596 position: absolute;
597 bottom: 9%;
598 width: 80%;
599 left: 10%;
600 font-style: italic;
601 color: black;
602 font-size: 0.6em;
603 }
604
605 .card .code {
606 position: absolute;
607 color: white;
608 bottom: 3.5%;
609 right: 12%;
610 font-size: 0.65em;
611 text-shadow: -0.0433em -0.0433em black,
612 0.0433em -0.0433em black,
613 -0.0433em 0.0433em black,
614 0.0433em 0.0433em black,
615 0.06667em 0 black,
616 -0.06667em 0 black,
617 0 0.06667em black,
618 0 -0.06667em black;
619 }
620
621 #statusbar {
622 display: none;
623 position: fixed;
624 left: 0;
625 top: 0;
626 right: 0;
627 height: 20px;
628 background-color: black;
629 }
630
631 body.standalone #statusbar {
632 display: block;
633 }
634
635 h1, h2, [onclick], label {
636 -webkit-user-select: none;
637 -moz-user-select: none;
638 user-select: none;
639 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
640 cursor: default;
641 }
642
643 [onclick], select, label {
644 cursor: pointer;
645 }
646
647 td:target {
648 font-weight: bold;
649 }
650
651 @media print {
652
653 @page {
654 size: 3.5in 7in;
655 margin: 0.5em;
656 }
657 .no-print {
658 display: none !important;
659 }
660
661 body, html {
662 background-color: white;
663 font-size: 10pt;
664 }
665
666 main {
667 max-width: 3.5in;
668 }
669
670 .card {
671 width: 64mm;
672 height: 87mm;
673 font-size: 9pt;
674 page-break-inside: avoid;
675 }
676 }
677
678 @media all and (-webkit-min-device-pixel-ratio:0) {
679 h1 {
680 text-shadow: none;
681 -webkit-text-stroke: 0.02em black;
682 }
683
684 .broken-on-webkit {
685 display: none !important;
686 }
687
688 }