-
Notifications
You must be signed in to change notification settings - Fork 13
/
style.css
2962 lines (2878 loc) · 72.5 KB
/
style.css
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
html {
font-size: 16px;
height: 100vh;
height: 100dvh;
}
body {
height: 100%;
margin: 0;
box-sizing: border-box;
display: flex;
flex-direction: column;
font-family: Ubuntu, Source Sans Pro, DejaVu Sans, sans-serif;
line-height: 1.33;
background: hsl(var(--main-hue), 5%, 5%);
background-image: url(background.svg);
background-size: 12em;
color: #ececec;
--main-hue: 340;
--hover-hue: 15;
--selected-hue: 320;
--panel-bg-color: hsl(var(--main-hue), 20%, 12.5%);
--button-bg-color: hsl(var(--main-hue), 60%, 30%);
--button-bg-gradient: linear-gradient(to bottom, var(--button-bg-shadow-color), transparent 75%);
--button-bg-shadow-color: #fff1;
--button-bg-hover-color: hsl(var(--hover-hue), 80%, 40%);
--generic-bg-hover-on-white: hsl(var(--hover-hue), 90%, 85%);
--generic-bg-selected-on-white: hsl(var(--selected-hue), 50%, 85%);
--generic-border-selected-on-white: hsl(var(--selected-hue), 60%, 75%);
}
/* Generic element styling */
main[hidden] {
display: none !important;
}
input[type=radio],
input[type=checkbox],
input[type=range] {
font-size: inherit;
margin: 0.125em;
vertical-align: middle;
}
input[type=number] {
font-size: inherit;
width: 4em;
width: 8ch;
text-align: right;
}
button,
.radio-faux-button-set > label > input + span {
font-size: inherit;
padding: 0.25em 0.5em;
font-family: inherit;
color: white;
background-color: var(--button-bg-color);
background-image: var(--button-bg-gradient);
border: 1px solid hsl(var(--main-hue), 10%, 2.5%);
box-shadow:
inset 0 0 0 1px #ffffff18,
0 1px 1px hsl(var(--main-hue), 10%, 7.5%);
border-radius: 0.25em;
text-shadow: 0 1px 0 #0006;
text-transform: lowercase;
cursor: pointer;
}
button:hover,
.radio-faux-button-set > label:hover > input + span {
background-color: var(--button-bg-hover-color);
}
button:active,
.radio-faux-button-set > label:active > input + span {
transform: translateY(1px);
/* Need this for the editor's tool help things and i'm not questioning it */
z-index: 1;
}
button:enabled.button-bright {
background-color: hsl(var(--main-hue), 60%, 45%);
}
button:enabled.button-bright:hover {
background-color: hsl(var(--hover-hue), 70%, 50%);
}
button:disabled {
color: #999;
background-color: #444;
cursor: auto;
}
button.button-big {
display: block;
width: 100%;
margin: 0.5em 0;
padding: 1em;
}
button.--button-glow-ok {
background: hsl(var(--main-hue), 100%, 50%);
}
button.--button-glow {
transition: background-color 0.5s ease-out;
}
button.--image {
padding: 0;
border: none;
background: none;
box-shadow: none;
}
button.--image img {
display: block;
}
select {
font-size: inherit;
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
margin: 0;
}
ul, ol {
margin: 0;
padding: 0;
list-style: none;
}
ul.normal-list {
margin-left: 1em;
list-style: disc;
}
ol.normal-list {
margin-left: 1.5em;
list-style: decimal;
}
p {
margin: 0.5em 0;
}
p:first-child {
margin-top: 0;
}
p:last-child {
margin-bottom: 0;
}
pre {
white-space: pre-wrap;
}
code {
color: #c0c0e0;
}
kbd {
padding: 0 0.25em;
border: 1px solid currentColor;
border-radius: 0.25em;
box-shadow: 0 2px 0 currentColor;
text-align: center;
text-transform: uppercase;
}
a {
color: #c0c0c0;
}
a:link,
a:visited {
text-decoration: underline dotted;
}
a:link {
color: hsl(var(--main-hue), 80%, 75%);
}
a:visited {
color: hsl(270, 80%, 75%);
}
a:link:hover,
a:visited:hover {
text-decoration: underline;
}
a:active {
color: hsl(0, 90%, 75%);
}
svg#svg-iconsheet {
/* This is a collection of SVG icons to be re-<use>d */
display: none;
}
svg.svg-icon {
width: 1em;
height: 1em;
vertical-align: middle;
stroke: none;
fill: currentColor;
fill-rule: evenodd;
}
/* Set of radio buttons in a row, styled like buttons */
/* (you know, like /actual/ radio buttons) */
/* Button-esque styling is shared with the button definition above */
.radio-faux-button-set {
display: flex;
align-items: stretch;
margin: 0.5em 0;
}
.radio-faux-button-set > label {
flex: 1;
}
.radio-faux-button-set > label > input {
display: none;
}
.radio-faux-button-set > label > input + span {
display: block;
box-sizing: border-box;
height: 100%;
border-radius: 0;
text-align: center;
}
.radio-faux-button-set > label:first-child > input + span {
border-top-left-radius: 0.25em;
border-bottom-left-radius: 0.25em;
}
.radio-faux-button-set > label:last-child > input + span {
border-top-right-radius: 0.25em;
border-bottom-right-radius: 0.25em;
}
button.--pressed,
.radio-faux-button-set > label > input:checked + span {
background: hsl(var(--main-hue), 80%, 50%);
box-shadow:
inset 0 1px 3px 1px hsl(var(--main-hue), 50%, 15%),
inset 0 0.25em 1em 0.5em hsl(var(--main-hue), 50%, 30%),
0 1px 1px hsl(var(--main-hue), 10%, 10%)
}
.button-row {
display: grid;
/* Put the buttons in a row most of the time, but change to a column when out of space */
grid: auto-flow auto / repeat(auto-fit, minmax(10em, 1fr));
gap: 0.5em;
align-items: stretch;
margin: 0.5em 0;
}
.button-row > button {
margin: 0;
}
/* Overlay styling */
.overlay {
display: flex;
align-items: center;
justify-content: center;
isolation: isolate;
z-index: 1;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: #fff4;
}
.overlay.--transient {
align-items: start;
justify-content: start;
background: none;
}
.popup-menu {
position: absolute;
min-width: 10vw;
border: 1px solid #999;
color: black;
background: hsl(var(--main-hue), 20%, 95%);
box-shadow: 0 1px 3px 1px #0009;
}
.popup-menu > li {
/* flex for shortcuts */
display: flex;
justify-content: space-between;
gap: 1em;
padding: 0.375em 0.625em;
white-space: nowrap;
cursor: pointer;
}
.popup-menu > li > .-shortcut {
color: #444;
}
.popup-menu > li > .-shortcut > kbd {
font-size: 0.75rem;
vertical-align: 0.125rem;
background: #d8d8d8;
letter-spacing: -1px;
text-transform: lowercase;
}
.popup-menu > li.-separator {
height: 0;
margin: 0.25em 0;
padding: 0;
border-bottom: 1px solid #999;
cursor: default;
}
.popup-menu > li:hover {
color: hsl(var(--hover-hue), 60%, 10%);
background: var(--generic-bg-hover-on-white);
}
.dialog {
display: flex;
flex-direction: column;
min-width: 33vw;
max-width: 75vw;
max-height: 75vh;
border: 1px solid black;
color: black;
background: #f4f4f4;
box-shadow: 0 1px 6px #000c;
}
.dialog > header {
padding: 0.5em;
line-height: 1;
background: linear-gradient(
hsl(var(--main-hue), 40%, 50%),
hsl(var(--main-hue), 50%, 45%));
border-bottom: 1px solid hsl(var(--main-hue), 60%, 30%);
color: white;
text-shadow: 0 2px 0 #0006;
}
.dialog > header h1 {
font-size: 1.25em;
}
.dialog > footer {
display: flex;
justify-content: flex-end;
gap: 0.5em;
padding: 0.5em;
background: #d0d0d0;
}
.dialog > footer > .-spacer {
flex: 1;
}
.dialog > header:empty,
.dialog > footer:empty {
display: none;
}
.dialog > section {
flex: auto;
overflow: auto;
padding: 1em;
}
.dialog pre.error {
color: #400000;
background: #f0d0d0;
padding: 0.5em 1em;
}
.dialog a:link {
color: hsl(var(--main-hue), 50%, 50%);
}
.dialog a:visited {
color: hsl(255, 50%, 50%);
}
.dialog code {
color: hsl(var(--main-hue), 50%, 30%);
}
.dialog h2 {
color: hsl(var(--main-hue), 75%, 25%);
border-bottom: 1px dotted hsl(var(--main-hue), 50%, 40%);
}
.dialog h2:nth-child(n+1) {
margin-top: 1rem;
}
dl.formgrid {
display: grid;
grid: auto-flow min-content / 1fr 4fr;
align-items: baseline;
gap: 1em;
margin: 0;
}
dl.formgrid > dt {
grid-column: 1;
text-align: right;
color: hsl(var(--main-hue), 50%, 25%);
}
dl.formgrid > dd {
grid-column: 2;
margin: 0;
}
dl.formgrid > dd button {
margin: 0.25em 0;
}
dl.formgrid > dd button + button {
margin-left: 0.25em;
}
dl.formgrid > dd.-one-field {
display: flex;
}
dl.formgrid > dd.-textarea {
display: flex;
align-self: end; /* make the <dt> align to the top */
}
dl.formgrid > dd.-one-field > *,
dl.formgrid > dd.-textarea > * {
flex: auto;
}
dl.formgrid > dd.-with-buttons {
display: flex;
justify-content: space-between;
}
dl.formgrid > dd > label {
display: block;
}
/* Individual overlays */
table.level-browser {
width: 100%;
/* for some reason the table ignores the bottom padding when it overflows */
margin-bottom: 1em;
line-height: 1.25;
border-spacing: 0;
}
table.level-browser thead {
position: sticky;
top: -1em; /* counteract padding so cells don't appear above us */
background: #f4f4f4; /* match dialog background */
}
table.level-browser thead tr th {
border-bottom: 2px solid hsl(var(--main-hue), 20%, 60%);
}
table.level-browser tfoot {
position: sticky;
bottom: -1em;
background: #f4f4f4; /* match dialog background */
}
table.level-browser tfoot tr th {
border-top: 2px solid hsl(var(--main-hue), 20%, 60%);
text-align: right;
}
table.level-browser th,
table.level-browser td {
padding: 0.25em;
}
table.level-browser td.-number {
color: #404040;
text-align: right;
}
table.level-browser th.-time,
table.level-browser th.-score,
table.level-browser td.-time,
table.level-browser td.-score {
text-align: right;
}
table.level-browser button {
font-size: 0.833em;
}
table.level-browser tr.--current {
background: var(--generic-bg-selected-on-white);
outline: 1px solid var(--generic-border-selected-on-white);
}
table.level-browser tr.--unvisited {
color: #606060;
font-style: italic;
}
table.level-browser tr.--error {
color: #600000;
font-style: italic;
}
table.level-browser tbody tr {
cursor: pointer;
}
table.level-browser tbody tr:hover {
background: var(--generic-bg-hover-on-white);
}
table.level-browser tbody tr:nth-child(10n) td {
border-bottom: 2px solid hsl(var(--main-hue), 20%, 80%);
}
@media (max-width: 600px) {
/* Unique media query: this is only necessary for VERY narrow screens */
/* In order to wrap the rows, turn the table markup into a stack of grids */
table.level-browser {
display: block;
}
table.level-browser tr {
display: grid;
grid:
"number star name name forget"
"number . clock time score"
/ 3em 1em 1fr 1fr 1fr
;
}
table.level-browser td,
table.level-browser th {
display: block;
}
table.level-browser thead .-title,
table.level-browser tfoot .-title {
/* "Level" and "Total" column headers are not useful and eat a lot of space */
display: none;
}
table.level-browser thead th:empty,
table.level-browser tfoot th:empty {
/* These are filler for table layout purposes */
display: none;
}
table.level-browser .-number {
grid-area: number;
}
table.level-browser .-title {
grid-area: name;
}
table.level-browser .-time {
grid-area: clock;
}
table.level-browser .-time + .-time {
grid-area: time;
}
table.level-browser .-score {
grid-area: score;
}
table.level-browser .-aid {
grid-area: star;
/* We overflow a bit because of our padding, so just leak into it */
justify-self: center;
}
table.level-browser .-button {
grid-area: forget;
justify-self: end;
}
/* Move borders off cells and onto rows */
table.level-browser thead tr th {
border: none;
}
table.level-browser tfoot tr th {
border: none;
}
table.level-browser tbody tr:nth-child(10n) td {
border: none;
}
table.level-browser thead tr {
border-bottom: 2px solid hsl(var(--main-hue), 20%, 60%);
}
table.level-browser tfoot tr {
border-top: 2px solid hsl(var(--main-hue), 20%, 60%);
}
table.level-browser tbody tr {
border-bottom: 1px solid #ddd;
}
table.level-browser tbody tr.--current {
border: none;
}
table.level-browser tbody tr:nth-child(10n) {
border-bottom: 2px solid hsl(var(--main-hue), 20%, 80%);
}
}
/* Compat dialog */
.dialog-compat {
max-width: 60em;
}
ul.compat-flags > li {
padding: 0.125em;
}
ul.compat-flags > li.-checked {
background: var(--generic-bg-selected-on-white);
}
ul.compat-flags > li:hover {
background: var(--generic-bg-hover-on-white);
}
ul.compat-flags > li > label {
display: flex;
align-items: center;
gap: 0.25em;
}
ul.compat-flags > li > label > input[type=check] {
margin: 0.25em;
}
ul.compat-flags > li > label > span.-desc {
flex: 1;
}
img.compat-icon,
.compat-icon-gap {
display: inline-block;
width: 32px;
height: 32px;
vertical-align: middle;
}
@media (max-width: 800px) {
/* Stack the formgrid, it doesn't fit very well as columns */
.dialog dl.formgrid {
display: block;
}
.dialog dl.formgrid > dt {
margin: 0.5em 0;
text-align: left;
}
.dialog dl.formgrid > dt:first-child {
margin-top: 0;
}
.dialog dl.formgrid > :is(dd, dt) + dt {
border-top: 1px solid #ccc;
padding-top: 0.5em;
}
.dialog dl.formgrid > * + dt:empty {
padding-top: 0;
}
.dialog dl.formgrid > dd {
margin: 0.5em 0;
}
.dialog-compat .radio-faux-button-set {
font-size: 0.83em;
flex-wrap: wrap;
}
.dialog-compat .radio-faux-button-set > * {
flex: 1 0 30%;
}
.dialog-compat .radio-faux-button-set .-button {
border-radius: 0;
}
ul.compat-flags img.compat-icon,
ul.compat-flags span.compat-icon-gap {
width: 16px;
height: 16px;
}
}
/* Options dialog */
.dialog-options {
}
.option-volume {
display: flex;
gap: 1em;
}
.option-volume > input[type=range] {
flex: auto;
}
table.option-tilesets th,
table.option-tilesets td {
padding: 0.25rem 0.5rem;
}
table.option-tilesets > tr > .-format {
font-size: 0.75em;
text-align: center;
}
table.option-tilesets > tr > .-slot {
padding: 0;
}
table.option-tilesets > tr > .-slot > label {
display: grid;
box-sizing: border-box;
min-width: 100%;
min-height: 100%;
padding: 0.5em 1em;
place-items: center;
}
table.option-tilesets canvas {
vertical-align: middle;
}
label.option {
display: flex;
align-items: center;
padding: 0.25em;
}
label.option:hover {
outline: 2px solid #d0d0d0;
}
label.option .option-label {
flex: 1;
}
.option-help {
display: none;
background: #e8e8e8;
padding: 0.5em 0.75em;
border-radius: 0.5em;
}
.option-help.--visible {
/* TODO */
}
.dialog-options input[type=file][name=custom-tileset] {
display: none;
}
@media (max-width: 800px) {
.dialog {
max-width: 90%;
max-height: 90%;
}
.dialog-options {
}
}
/**************************************************************************************************/
/* Main page structure */
body > header {
display: flex;
align-items: center;
gap: 0.5em;
padding: 0.25em 0.5em;
line-height: 1.125;
}
body > header h1 {
font-size: 1.66em;
}
body > header h2 {
font-size: 1.33em;
}
body > header h3 {
font-size: 1.75em;
}
body > header > nav {
flex: 1;
display: flex;
justify-content: flex-end;
gap: 0.5em;
}
body > header button {
white-space: nowrap;
}
body > header h1 a {
color: inherit !important;
text-decoration: none !important;
}
body[data-mode=failed] #header-pack,
body[data-mode=failed] #header-level,
body[data-mode=failed] #header-main > nav,
body[data-mode=loading] #header-pack,
body[data-mode=loading] #header-level,
body[data-mode=loading] #header-main > nav {
display: none;
}
body[data-mode=splash] #header-pack,
body[data-mode=splash] #header-level {
display: none;
}
body[data-mode=editor] #player-edit,
body[data-mode=player] #editor-play {
display: none;
}
#failed,
#loading {
margin: auto;
text-align: center;
}
#failed .-with-error {
display: none;
}
#failed.--got-error .-with-error {
display: revert;
}
#loading {
font-size: 2em;
}
.scrolling-sidewalk {
height: 32px;
width: 50vw;
margin: auto;
background: url(icons/tool-bg-selected.png) repeat;
animation: scrolling-sidewalk linear 0.4s infinite;
--mask: linear-gradient(to right, transparent 0, #ffffff40 10%, white 20%, white 80%, #ffffff40 90%, transparent 100%);
-webkit-mask-image: var(--mask);
mask-image: var(--mask);
}
.scrolling-sidewalk > img {
display: block;
margin: auto;
}
@keyframes scrolling-sidewalk {
0% {
background-position: 0px 0px;
}
100% {
background-position: -32px 0px;
}
}
pre.stack-trace {
overflow: auto;
width: 90vw;
max-width: 50em;
padding: 0.5em;
margin: 1em auto;
white-space: pre;
text-align: left;
background: hsl(345, 20%, 10%);
border: 3px double hsl(345, 75%, 20%);
}
#header-main {
order: 3;
color: #606060;
}
#header-icon {
image-rendering: crisp-edges;
image-rendering: pixelated;
}
#main-compat > img {
height: 16px;
vertical-align: middle;
margin-right: 0.25em;
}
@media (orientation: portrait) and (max-width: 800px), (orientation: landscape) and (max-height: 600px) {
body > header {
padding: 1px;
}
/* All these headings are way too big on phones */
body > header h1 {
font-size: 1.125em;
}
body > header h2 {
font-size: 1.125em;
}
body > header h3 {
font-size: 1.0625em;
}
body > header p {
/* "a game by eevee" takes up too much space :( */
display: none;
}
/* Hide the top/bottom nav while playing entirely */
body[data-mode=player] #header-pack,
body[data-mode=player] #header-level {
display: none;
}
}
/**************************************************************************************************/
/* Splash (intro part) */
#splash {
display: grid;
grid:
"header header"
"links links"
"disclaimer disclaimer"
"stock yours"
/ 3fr minmax(18em, 1fr)
;
gap: 1em;
position: relative;
padding: 1em 7.5%;
margin: auto 0;
overflow: auto;
}
#splash::after {
/* Force some breathing room at the bottom of the scroll */
content: '';
display: block;
height: 2em;
}
#splash > .drag-overlay {
display: none;
justify-content: center;
align-items: center;
font-size: 10vmin;
position: fixed;
top: 0.5rem;
bottom: 0.5rem;
left: 0.5rem;
right: 0.5rem;
background: #0004;
border: 0.125rem dashed white;
border-radius: 0.25rem;
text-shadow: 0 1px 5px black;
text-align: center;
}
#splash > .drag-overlay::before {
content: "drop levels here";
}
#splash.--drag-hover > .drag-overlay {
display: flex;
}
#splash > header {
grid-area: header;
display: grid;
grid:
"image title fullscreen" 2fr
"image tagline fullscreen" 1fr
/ min-content 1fr min-content
;
gap: 0 2em;
margin: auto;
}
#splash > header img {
grid-area: image;
align-self: center;
}
#splash > header h1 {
grid-area: title;
align-self: end;
font-size: 4em;
margin: 0;
}
#splash > header p {
grid-area: tagline;
align-self: start;
font-size: 1.5em;
margin: 0;
font-style: italic;
color: #909090;
}
#splash-fullscreen {
/* FIXME this makes the title SLIGHTLY offcenter bc of grid gap */
display: none;
grid-area: fullscreen;
align-self: center;
}
#splash-fullscreen svg {
width: 2em;
height: auto;
}
#splash h2 {
color: hsl(var(--main-hue), 40%, 90%);
text-shadow: 0 1px #000c;
background: hsl(var(--main-hue), 40%, 20%);
margin: -1rem -1rem 1rem;
padding: 0.5rem 1rem;
}
#splash * + h2 {
margin-top: 1rem;
}
#splash > section {
padding: 1em;
background: var(--panel-bg-color);
box-shadow: 0 0.25em 1em black;
}
#splash-links {
grid-area: links;
font-size: 1.5em;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0 2em;
}
#splash > #splash-intro {
grid-area: intro;
font-size: 20px;
}
#splash > #splash-stock-levels {
grid-area: stock;
}
#splash > #splash-upload-levels {
grid-area: upload;
}
#splash-upload-file,
#splash-upload-dir {
/* Hide the file upload control, which is ugly */
display: none;
}
#splash > #splash-your-levels {
grid-area: yours;
}
#splash > #splash-disclaimer {
grid-area: disclaimer;
font-size: 0.83em;
margin: 0;
text-align: center;
color: #c0c0c0;
}
@media (max-width: 800px) {
#splash {
/* Grid layout doesn't fit, just stack everything */
display: flex;
flex-direction: column;
gap: 0.5em;
/* 10% padding is way way too much */
padding: 0.5em;
}
#splash::after {
/* This needs different handling in a flex container */
flex: 0 0 0.5em;
height: auto;
}
/* Shrink logo and title, and left-align both */
#splash > header {
grid-template-rows: auto auto;
grid-template-columns: min-content 1fr;
column-gap: 0.5em;
margin: 0;
}
#splash > header img {
width: 48px;
}
#splash > header h1 {
font-size: 1.5em;
}
#splash > header p {
font-size: 0.9em;
}
/* No need to boost the font size here */
#splash > #splash-links {
font-size: inherit;
column-gap: 1em;
}
#splash > section {
padding: 0.5em;
}
/* This takes up an incredible amount of space on a phone; push it down, they have to scroll to