-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsheet.css
More file actions
1986 lines (1851 loc) · 59.1 KB
/
sheet.css
File metadata and controls
1986 lines (1851 loc) · 59.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Browser-Specific Logic */
@supports not (selector(:has(*))) { /* More basic settings for browsers that don't support the 'has' selector for dynamically displaying/hiding elements based on user selection (such as Firefox ~v119 and earlier) */
div.characterviewer div.charactersheet div.attacks div#ammoplaceholder { /* Just fully hide the placeholders which can't be switched in & out */
display: none;
}
div.characterviewer div.charactersheet div.techniques div#quantityplaceholder { /* Just fully hide the placeholders which can't be switched in & out */
display: none;
}
}
/* Fonts */
@font-face {
font-family: 'Lion-and-Hare';
font-style: normal;
font-weight: bold;
src: url('https://www.d20helix.com/font/lionandhare-bold.woff2') format('woff2'),
url('https://www.d20helix.com/font/lionandhare-bold.woff') format('woff');
}
@font-face {
font-display: swap;
font-family: 'Rubik';
font-style: normal;
font-weight: lighter;
src: url('https://www.d20helix.com/font/rubik-300.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Rubik';
font-style: italic;
font-weight: lighter;
src: url('https://www.d20helix.com/font/rubik-300italic.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Rubik';
font-style: normal;
font-weight: normal;
src: url('https://www.d20helix.com/font/rubik-regular.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Rubik';
font-style: italic;
font-weight: normal;
src: url('https://www.d20helix.com/font/rubik-italic.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Rubik';
font-style: normal;
font-weight: bold;
src: url('https://www.d20helix.com/font/rubik-700.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Rubik';
font-style: italic;
font-weight: bold;
src: url('https://www.d20helix.com/font/rubik-700italic.woff2') format('woff2');
}
/* @import url('https://fonts.googleapis.com/css?family=Rubik:300,300italic,400,400italic,700,700italic'); */
@import url('https://dl.dafont.com/dl/?f=around');
/* Style Variables */
:root {
--nearblack: #555;
--shadowgray: rgba(0, 0, 0, 0.5);
--inactivetabs: dimgray;
--background: white;
--secondarybackground: #ddd;
--lightfont: #ddd;
--midfont: #888;
--tooltipbackground: black;
--fieldborder: #ccc;
--fieldbackground: #f5f5f5;
--buttontop: #f5f5f5;
--buttonbottom: #ddd;
--buttonactivetop: #ffdcb0;
--buttonactivebottom: #f2bc7b;
--buttondangertop: #e19191;
--buttondangerbottom: #f34646;
--buttondangeractivetop: red;
--buttondangeractivebottom: darkred;
--npcheader: #b8c7cf;
--highlight: darkorange;
--highlightText: #d77600;
--secondaryHighlightText: #5e009d;
--roll20red: #aa1b1b;
--roll20green: #71bc7f;
--roll20blue: #7190bc;
}
/* Toggle field visibility between PC & NPC sheets */
div.characterviewer div.charactersheet input[type=checkbox].npctoggle:checked ~ div .pconly {
display: none;
}
div.characterviewer div.charactersheet input[type=checkbox].npctoggle:not(:checked) ~ div .npconly {
display: none;
}
div.characterviewer div.charactersheet input[type=checkbox].npctoggle {
margin: 4px;
}
div.characterviewer div.charactersheet span.npctoggle {
margin-left: 4px;
margin-top: 1px;
color: var(--lightfont);
}
div.characterviewer div.charactersheet input[type=checkbox].npctoggle:checked ~ div div.header,
div.characterviewer div.charactersheet input[type=checkbox].npctoggle:checked ~ div div.footer {
background-color: var(--npcheader);
}
/* Overall Styling & Overriding of Default Roll20 Sheet Formatting */
div#tab-content { /* Overall width limits for the entire sheet itself */
max-width: 750pt;
min-width: 650pt;
}
div.largedialog.characterviewer {
padding: 0;
}
div.charactersheet .incomplete {
border: 1px solid red !important; /* Marked as 'important' in order to always override any other border settings */
}
div.characterviewer div.charactersheet input[type="checkbox"],
div.characterviewer div.charactersheet input[type='radio'] {
accent-color:var(--highlight);
}
div.characterviewer div.charactersheet p {
margin: 0;
}
div.characterviewer div.charactersheet {
all: initial;
padding: 0;
line-height: normal;
background-color: black;
}
div.characterviewer div.charactersheet div.sheetbody {
background-color: white;
}
div.characterviewer div.charactersheet > * {
font-family: "Rubik", "Trebuchet MS", "Tahoma", sans-serif;
font-size: small;
color: var(--nearblack);
}
div.characterviewer div.charactersheet select {
width: 100%;
}
div.charactersheet ul.infolist,
div.charactersheet ul.armor,
div.charactersheet ul.weapons {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
div.charactersheet ul.infolist li,
div.charactersheet ul.armor li,
div.charactersheet ul.weapons li,
div.charactersheet div.abilities details {
background-color: var(--secondarybackground);
padding: 4pt;
margin-bottom: 6pt;
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
}
div.charactersheet div.abilities details summary {
display: list-item; /* Fixes a bug in Firefox where it won't show the disclosure indicator for <details> unless the <summary> elements have the list-item display mode */
}
div.charactersheet ul.infolist li {
width: 140px;
height: 60px;
}
div.charactersheet ul.infolist li input,
div.charactersheet ul.infolist li span.textblock {
text-align: center;
font-size: medium;
font-weight: bold;
margin-left: 4px;
margin-right: 4px;
}
div.characterviewer div.charactersheet label {
font-size: small;
font-weight: normal;
margin: 0;
padding: 0;
color: var(--nearblack);
width: auto;
}
div.characterviewer div.charactersheet span.npctoggle,
div.charactersheet div.header label,
div.charactersheet div.footer ul li,
div.charactersheet div.tabbed-view label.tab-heading,
div.charactersheet div.skills table td.smalltext,
div.charactersheet ul.infolist li label,
div.charactersheet ul.armor li > label,
div.charactersheet ul.weapons li label,
div.charactersheet div.gridheadings label,
div.charactersheet div.abilities div.gridheadings label,
div.charactersheet div.techniques label,
div.charactersheet div.passives label,
div.charactersheet div.abilities details summary,
div.charactersheet div.abilities details th {
font-size: x-small;
font-weight: bold;
text-transform: uppercase;
}
div.characterviewer div.charactersheet input {
font-size: small;
margin: 0;
color: var(--nearblack);
width: auto;
}
div.characterviewer div.charactersheet textarea {
all: initial;
font-family: "Rubik", "Trebuchet MS", "Tahoma", sans-serif;
font-size: small;
border: 2pt solid var(--midfont);
padding: 4pt;
}
div.characterviewer div.charactersheet ul {
list-style-type: none;
padding: 0;
margin: auto;
}
div.characterviewer div.charactersheet button,
div.characterviewer div.charactersheet button[type=roll],
div.characterviewer div.charactersheet button[type=action] {
cursor: pointer;
font-weight: normal;
font-size: small;
margin: 0;
border: 1px solid var(--fieldborder);
color: var(--nearblack);
text-shadow: none;
line-height: 1.4em;
background-image: linear-gradient(var(--buttontop), var(--buttonbottom));
background-position: top;
background-repeat: no-repeat;
border-radius: 3px;
min-height: 24px;
padding-left: 0;
padding-right: 0;
padding-top: 1px;
padding-bottom: 1px;
display: inline-flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
vertical-align: middle;
-ms-touch-action: none;
touch-action: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
div.characterviewer div.charactersheet button.btn-danger,
div.characterviewer div.charactersheet button[type=roll].btn-danger,
div.characterviewer div.charactersheet button[type=action].btn-danger {
background-image: linear-gradient(var(--buttondangertop), var(--buttondangerbottom));
border: 1px solid var(--buttondangerbottom);
color: black;
min-width: 6em;
z-index: 99;
}
div.characterviewer div.charactersheet button.repcontrol_add,
div.characterviewer div.charactersheet button.repcontrol_edit,
div.characterviewer div.charactersheet button.repcontrol_modify {
min-width: 6em;
}
div.characterviewer div.charactersheet button:hover,
div.characterviewer div.charactersheet button[type=roll]:hover,
div.characterviewer div.charactersheet button[type=action]:hover,
div.characterviewer div.charactersheet button:focus,
div.characterviewer div.charactersheet button[type=roll]:focus,
div.characterviewer div.charactersheet button[type=action]:focus,
div.characterviewer div.charactersheet button.focus,
div.characterviewer div.charactersheet button[type=roll].focus,
div.characterviewer div.charactersheet button[type=action].focus {
background-image: linear-gradient(var(--buttonactivetop), var(--buttonactivebottom));
background-position: top;
color: var(--highlightText);
border: 1px solid var(--highlight);
transition: none;
outline: none;
outline-offset: 0;
text-decoration: inherit;
box-shadow: none;
-webkit-box-shadow: none;
}
div.characterviewer div.charactersheet button.btn-danger:hover,
div.characterviewer div.charactersheet button[type=roll].btn-danger:hover,
div.characterviewer div.charactersheet button[type=action].btn-danger:hover,
div.characterviewer div.charactersheet button.btn-danger:focus,
div.characterviewer div.charactersheet button[type=roll].btn-danger:focus,
div.characterviewer div.charactersheet button[type=action].btn-danger:focus,
div.characterviewer div.charactersheet button.btn-danger.focus,
div.characterviewer div.charactersheet button[type=roll].btn-danger.focus,
div.characterviewer div.charactersheet button[type=action].btn-danger.focus {
background-image: linear-gradient(var(--buttondangeractivetop), var(--buttondangeractivebottom));
background-position: top;
color: white;
border: 1px solid red;
}
div.characterviewer div.charactersheet button span,
div.characterviewer div.charactersheet button[type=roll] span,
div.characterviewer div.charactersheet button[type=action] span {
display: flex;
height: 100%;
vertical-align: middle;
line-height: 1em;
margin-left: 6px; /* Make space before the text, for the icon */
}
div.characterviewer div.charactersheet button:before {
content: "" !important; /* Remove the D20 icon (which is just the letter 't' in a specialist font) from specific buttons */
}
div.charactersheet div.stretchyholder {
display: flex;
justify-content: stretch;
align-items: stretch;
width: 100%;
height: 100%;
}
div.charactersheet div.stretchyholder > button,
div.charactersheet div.stretchyholder > textarea,
div.charactersheet div.stretchyholder > span {
width: 100%;
height: 100%;
}
div.charactersheet div.singlecolumn {
width: 100%;
display: flex;
justify-content: space-between;
}
div.charactersheet div.multicolumn,
div.charactersheet ul.multicolumn {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
}
div.charactersheet div.oneline {
width: 100%;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: space-between;
}
div.charactersheet div.oneline.verticalstretch {
align-items: stretch;
}
div.charactersheet div.section {
padding: 8pt;
width: 100%;
display: inline-block;
}
div.charactersheet div.section.bigcolumn {
width: 55%;
}
div.charactersheet div.section.smallcolumn {
width: 40%;
}
div.charactersheet div.subsection {
padding: 0;
width: 100%;
margin: 0;
margin-bottom: 18px;
}
div.charactersheet div.repeatingrow {
width: 100%;
padding-bottom: 6px;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
}
div.charactersheet div.repeatingrow div.calculation {
border: 1px solid var(--fieldborder);
background: var(--fieldbackground);
border-radius: 3px;
}
div.charactersheet div.repeatingrow div.calculation input[readonly] { /* The calculation acts as the field, so remove any styling on fields within it */
border: none;
background: none;
padding-top: 4px;
padding-bottom: 4px;
}
div.charactersheet div.gridheadings {
width: 100%;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
}
div.charactersheet div.gridheadings label {
text-align: center;
margin-bottom: 6px;
}
div.charactersheet div.gridheadings label:first-child {
text-align: left;
}
div.charactersheet div.gridheadings label:last-child {
text-align: right;
}
div.charactersheet div.verticalgroup {
width: 100%;
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
align-items: center;
}
div.charactersheet div.quantity,
div.charactersheet label.quantity {
max-width: 160px;
}
div.charactersheet input[readonly][type=number]::-webkit-outer-spin-button,
div.charactersheet input[readonly][type=number]::-webkit-inner-spin-button { /* Hide the 'Spinner' Up/Down arrows for read-only number fields in Chrome, Safari, Edge, and Opera */
-webkit-appearance: none;
margin: 0;
}
div.charactersheet input[readonly][type=number] { /* Hide the 'Spinner' Up/Down arrows for read-only number fields in Firefox */
-moz-appearance: textfield;
appearance: textfield;
}
div.charactersheet input[type=number]::-webkit-inner-spin-button,
div.charactersheet input[type=number]::-webkit-outer-spin-button { /* Always show the 'Spinner' Up/Down arrows for other input fields (the more specific one to hide for read-only will override this where needed) */
opacity: 1;
}
div.characterviewer div.charactersheet div select:has(> option[value="minoraction"]:checked) { /* Color-coding for selected action types */
color: var(--highlightText);
}
div.characterviewer div.charactersheet div select:has(> option[value="reaction"]:checked) {
color: var(--secondaryHighlightText);
}
div.charactersheet img.icon {
width: 20px;
height: 20px;
min-width: 20px;
min-height: 20px;
opacity: 75%;
}
div.charactersheet button img.icon {
width: 18px;
height: 18px;
min-width: 18px;
min-height: 18px;
}
div.characterviewer div.charactersheet div.placeholder img {
width: 100%;
height: 100%;
object-fit: contain;
border: 1px solid var(--nearblack);
border-radius: 3px;
opacity: 25%;
}
div.charactersheet select {
margin: 0;
}
div.charactersheet .tinyfield {
width: 5em;
}
div.charactersheet .shortfield {
width: 8em;
}
div.charactersheet .mediumfield {
width: 10em;
}
div.charactersheet .longfield {
width: 12em;
}
/* Advantage/Disadvantage Toggle */
/* Needs a separate div so that the other can use clip-path without cutting the shadow */
div.charactersheet div.shadowed {
filter: drop-shadow(0 1px 3px var(--shadowgray));
margin: 0;
position: fixed;
top: 0;
right: 20px;
z-index: 99;
}
div.charactersheet div.rollstyle input[type="radio"] { /* Hide each radio button's 'bullet' */
position: absolute;
left: -999em;
visibility: hidden;
display: none;
}
div.charactersheet div.rollstyle {
position: relative;
margin: 0;
display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: center;
vertical-align: middle;
text-align: center;
background-color: var(--nearblack);
color: var(--secondarybackground);
clip-path: polygon( /* Clips the div's visible path down to a trapezoid, with indentations of 10% width */
0 0,
100% 0,
98% 100%,
2% 100%
);
}
div.charactersheet div.rollstyle label {
color: var(--secondarybackground);
width: 11em;
padding: 6px;
text-align: center;
}
div.charactersheet div.rollstyle label:hover {
background-color: var(--midfont);
}
div.charactersheet div.rollstyle input[type="radio"] + label img.icon {
display: none;
visibility: hidden;
}
/* Style the currently selected item */
div.charactersheet div.rollstyle input[type="radio"]:checked + label {
background-color: var(--highlightText);
color: black;
}
div.charactersheet div.rollstyle input[type="radio"]:checked + label img.icon {
display: inline-block;
visibility: visible;
}
/* Headings */
div.charactersheet h1 {
font-family: "Rubik", "Trebuchet MS", "Tahoma", sans-serif;
font-size: small;
font-weight: bold;
text-transform: uppercase;
text-align: center;
padding-bottom: 2px;
border-bottom: 2px solid var(--nearblack);
margin-bottom: 8px;
line-height: 1em;
}
div.charactersheet h2 {
font-family: "Lion-and-Hare", "Around", "Rubik", "Trebuchet MS", "Tahoma", sans-serif;
font-size: xx-large;
font-style: normal;
font-weight: normal;
text-align: left;
color: black;
border-bottom: 2px solid var(--nearblack);
margin-bottom: 12px;
padding-left: 1px;
padding-right: 1px;
}
div.charactersheet h3 {
font-family: "Rubik", "Trebuchet MS", "Tahoma", sans-serif;
font-size: medium;
font-style: normal;
font-weight: bold;
text-align: left;
color: black;
border-bottom: 2px solid var(--fieldborder);
margin-bottom: 6px;
padding-left: 1px;
padding-right: 1px;
}
/* Tooltips & Custom Sub-Windows */
div.characterviewer div.charactersheet label.hastooltip { /* Style the item which has a tooltip connected to it */
width: auto;
display: inline-block;
text-align: center;
position: relative; /* This allows the tooltip content (with 'absolute' positioning) to use this element as its acnhor */
}
div.characterviewer div.charactersheet div.tooltipcontent, /* Style the tooltip itself */
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent { /* Enlarge the options section when expanded (as it is just the icon) */
transition: opacity 0.5s;
position: absolute;
display: flex;
flex-flow: row wrap;
align-items: center;
text-align: center;
background-color: var(--tooltipbackground);
border-radius: 6px;
padding: 6pt;
top: 150%; /* Position below the parent */
z-index: 99;
}
div.characterviewer div.charactersheet div.tooltipcontent > *, /* Style the tooltip itself */
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent > * {
color: var(--lightfont);
}
div.characterviewer div.charactersheet div.tooltipcontent > div {
flex-direction: column;
}
div.characterviewer div.charactersheet div.tooltipcontent p {
padding: 2px;
}
div.characterviewer div.charactersheet label.hastooltip div.tooltipcontent label,
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent label {
color: var(--lightfont);
}
div.characterviewer div.charactersheet div.tooltipcontent textarea {
color: var(--lightfont);
border: 2pt solid var(--nearblack);
min-height: 100px;
}
div.characterviewer div.charactersheet div.tooltipcontent { /* Position the tooltip and start it off hidden */
visibility: hidden;
opacity: 0;
justify-content: center;
width: 200px;
margin-left: -200px; /* Pull it to the left (equal to its width), so that it doesn't ever flow over the right-hand side of the sheet */
}
div.characterviewer div.charactersheet div.tooltipcontent.leanright { /* A more-specific version for when tooltips need to go the other way */
margin-left: 0;
margin-right: -200px; /* Pull it to the right (equal to its width), so that it doesn't ever flow over the left-hand side of the sheet */
}
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent { /* Position the full version of the options window */
width: 550px;
margin-right: -550px; /* Pull it to the left (equal to its width), so that it doesn't ever flow over the right-hand side of the sheet */
}
div.characterviewer div.charactersheet div.tooltipcontent::after,
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent::after { /* The tooltip box's connecting arrow */
content: " ";
position: absolute;
border-style: solid;
border-width: 10px;
}
div.characterviewer div.charactersheet div.tooltipcontent::after {
bottom: 100%; /* At the top of the tooltip */
left: 100%; /* Towards the right-hand side (becayse the tooltips are shifted left) */
right: auto;
margin-left: -25px;
margin-right: -25px;
border-color: transparent var(--tooltipbackground) var(--tooltipbackground) transparent; /* Fills in 2 of the 4 border sides, to make a right-angled triangle */
}
div.characterviewer div.charactersheet div.tooltipcontent.leanright::after {
left: auto;
right: 100%; /* Towards the right-hand side (becayse the tooltips are shifted left) */
border-color: transparent transparent var(--tooltipbackground) var(--tooltipbackground); /* Fills in 2 of the 4 border sides, to make a right-angled triangle */
}
div.characterviewer div.charactersheet div.tooltipcontent textarea {
visibility: hidden;
opacity: 0;
}
div.characterviewer div.charactersheet .hastooltip input[type=checkbox].tooltipcontrol { /* Ensure that the checkbox controlling tooltip on/off is never actually visible, and have it make the tooltip visible when checked */
display:none;
}
div.characterviewer div.charactersheet .hastooltip input[type=checkbox].tooltipcontrol:checked+div {
visibility: visible;
opacity: 1;
}
div.characterviewer div.charactersheet .hastooltip input[type=checkbox].tooltipcontrol:checked+div textarea { /* For some reason, the text areas need special treatment, which other fields in the tooltip appear not to */
visibility: visible;
opacity: 1;
}
div.characterviewer div.charactersheet label.hasoptions {
border: 1px solid var(--fieldborder);
border-radius: 3px;
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
width: 52px;
padding-left: 2px;
height: 26px;
margin-right: 6px;
}
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol { /* Ensure that the checkbox controlling tooltip on/off is never actually visible, and have it make the tooltip visible when checked */
display:none;
}
div.characterviewer div.charactersheet label.hasoptions img.icon {
width: 24px;
height: 24px;
}
div.characterviewer div.charactersheet div.optionscontent {
flex-flow: row nowrap;
justify-content: space-around;
align-items: center;
text-align: center;
}
div.characterviewer div.charactersheet div.optionscontent div.singleoption {
display: flex;
flex-flow: column nowrap;
justify-content: space-around;
align-items: center;
text-align: center;
}
div.characterviewer div.charactersheet div.optionscontent div.singleoption label {
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
align-items: center;
text-align: center;
}
div.characterviewer div.charactersheet label.hasoptions div.optionscontent input[type=radio], /* Always hide the radio buttons when not expanded */
div.characterviewer div.charactersheet label.hasoptions div.optionscontent input[type=radio]+label span, /* Hide the label text when not expanded - just show the selected icon */
div.characterviewer div.charactersheet label.hasoptions div.optionscontent input[type=radio]:not(:checked)+label { /* Hide the full label (including icon) for anything not selected */
display: none;
visibility: hidden;
opacity: 0;
transition: opacity 0.5s;
}
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent img.selectable { /* Style the icons to better suit the expanded section */
margin: 4px;
margin-top: 6px;
filter: invert(100%); /* Switch over the blacks & whites */
}
div.characterviewer div.charactersheet .hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent input[type=radio] {
margin-top: 3px;
}
div.characterviewer div.charactersheet .hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent input[type=radio]:checked+label {
color: var(--highlight);
}
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent input[type=radio], /* Show all radio buttons when expanded */
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent input[type=radio]+label, /* Show all labels (including icon) when expanded */
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent input[type=radio]+label span { /* Explicitly show all label text when expanded */
display: flex;
visibility: visible;
opacity: 1;
}
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ div.optionscontent input[type=radio]+label {
min-width: 85px;
}
div.characterviewer div.charactersheet label.hasoptions img.optionplaceholder { /* Hide the placeholder (for during selection) when not expanded */
display: none;
visibility: hidden;
opacity: 0;
}
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ img.optionplaceholder {
display: inline-block;
visibility: visible;
opacity: 1;
}
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ img.optionplaceholder {
opacity: 35%;
}
div.characterviewer div.charactersheet label.hasoptions img.icon.expander {
display: inline-block;
width: 8px;
min-width: 8px;
max-width: 8px;
height: 8px;
min-height: 8px;
max-height: 8px;
opacity: 50%;
margin-right: 2px;
}
div.characterviewer div.charactersheet label.hasoptions input[type=checkbox].optioncontrol:checked ~ img.icon.expander {
rotate: 90deg;
}
/* Sheet Header & Footer */
div.charactersheet div.header,
div.charactersheet div.footer {
width: 100%;
margin: 0;
background-color: var(--secondarybackground);
color: var(--nearblack);
align-items: center;
}
div.charactersheet div.header {
box-shadow: 0 2px 6px var(--shadowgray);
padding-top: 6px;
padding-bottom: 12px;
}
div.charactersheet div.footer {
margin-bottom: 20px;
box-shadow: 0 0 6px var(--shadowgray);
}
div.charactersheet div.header ul,
div.charactersheet div.footer ul {
display: flex;
flex-flow: row wrap;
width: 100%;
height: 100%;
}
div.charactersheet div.header ul {
justify-content: center;
}
div.charactersheet div.footer ul {
justify-content: space-between;
}
div.charactersheet div.footer ul li {
margin: 8px;
}
div.charactersheet div.header label {
margin-left: 4px;
margin-right: 4px;
margin-top: 0;
margin-bottom: 0;
}
div.charactersheet div.header select.dna,
div.charactersheet div.header select.creature {
width: 12em;
}
div.charactersheet div.logo {
width: 220px;
height: 100%;
margin: 0;
padding: 0;
padding-left: 12px;
padding-right: 12px;
}
div.charactersheet div.logo img {
display: block;
width: 100%;
height: auto;
}
div.charactersheet div.header input#charname {
width: 20em;
}
div.charactersheet div.header input#charclass {
width: 15em;
}
div.charactersheet div.header select#challengerating {
width: 6.5em;
}
div.charactersheet div.footer div.attributions {
font-size: x-small;
padding: 12px;
padding-top: 6px;
text-align: center;
}
/* Tabbed Panels */
div.charactersheet div.tabbed-view {
margin: 0;
margin-top: 8px;
margin-bottom: 12px;
background: var(--nearblack); /* Sets the background specifically for the tabs list (which actually continues throughout, because the tabs must be in the same hierarchy as the content they control */
display: flex;
flex-flow: row wrap;
align-items: top;
justify-content: center;
}
div.charactersheet div.tabbed-view div.tabbed-view-content {
width: 100%; /* Ensure that the content section flows past the tabs themselves and wraps onto a new line */
background: var(--background); /* Sets the background of the content area (masking the background set above for the tabs list */
padding-top: 10px;
}
div.charactersheet div.tabbed-view > input[type="radio"] { /* Hide each radio button's 'bullet' */
position: absolute;
left: -999em;
visibility: hidden;
display: none;
}
div.charactersheet div.tabbed-view section.tab-panel { /* Hide all sections by default */
display: none;
}
div.charactersheet div.tabbed-view input#tab1:checked ~ div.tabbed-view-content section#tab-panel1, /* Allows each tab input field to display the corresponding tab panel (linked via IDs) — To enable more than 5 tabs, expand this list */
div.charactersheet div.tabbed-view input#tab2:checked ~ div.tabbed-view-content section#tab-panel2,
div.charactersheet div.tabbed-view input#tab3:checked ~ div.tabbed-view-content section#tab-panel3,
div.charactersheet div.tabbed-view input#tab4:checked ~ div.tabbed-view-content section#tab-panel4,
div.charactersheet div.tabbed-view input#tab5:checked ~ div.tabbed-view-content section#tab-panel5 {
display: block;
}
div.charactersheet div.tabbed-view label.tab-heading {
display: inline-block;
margin-top: 6px;
padding: 6px;
padding-left: 12px;
padding-right: 12px;
cursor: pointer;
min-width: 14em;
text-align: center;
background: var(--inactivetabs);
color: var(--lightfont);
clip-path: polygon( /* Clips the div's visible path down to a trapezoid, with indentations of 10% width */
10% 0,
90% 0,
100% 100%,
0% 100%
);
border-bottom: 2px solid var(--nearblack);
}
div.charactersheet div.tabbed-view input:checked + label.tab-heading { /* Style the currently selected tab */
background: var(--background);
border-bottom: 2px solid var(--background);
border-top: 4px solid var(--highlight);
color: black;
margin-bottom: -1px; /* To cover the full bottom border of what's below */
}
div.charactersheet div.tabbed-view label.tab-heading:hover, /* Style tabs when the mouse hovers over them */
div.charactersheet div.tabbed-view input:focus + label.tab-heading {
background: var(--secondarybackground);
color: var(--nearblack);
}
/* Stats */
div.charactersheet ul.stats {
list-style-type: none;
display: inline-block;
padding: 0;
display: flex;
flex-flow: row wrap;
justify-content: center;
}
div.charactersheet ul.stats li {
text-align: center;
margin-left: 10px;
margin-right: 10px;
margin-top: 0;
margin-bottom: 0;
}
div.charactersheet div.statheader {
clip-path: polygon( /* Clips the div's visible path down to a trapezoid, broadest at the top, with indentations of 20% width */
0 0,
100% 0,
80% 100%,
20% 100%
);
padding: 4pt;
color: var(--lightfont);
background-color: var(--nearblack);
}
div.charactersheet div.statheader label {
color: var(--lightfont);
}
div.charactersheet div.statbody {
clip-path: polygon( /* Clips the div's visible path down to a basic shield */
0 0,
100% 0,
100% 70%,
50% 100%,
0 70%
);
background-color: var(--secondarybackground);
display: inline-block;
text-align: center;
margin: auto;
padding: 4pt;
width: 80pt;
}
div.charactersheet div.statbody button {
display: inline-block;
padding: 0;
margin: 0;
width: 80%;
}