-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
126 lines (106 loc) · 2.41 KB
/
index.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
img {
width: min(2.5em, calc((100vw - 5.25em) / 8));
}
button, select, input[type="number"] {
font-size: 0.8333rem;
}
menu {
position: relative;
}
/* The screen widths here are rounded up to an integer number of ems. */
@media screen and (min-width: 25em) {
menu {
columns: 2;
}
}
@media screen and (min-width: 37em) {
menu {
columns: 3;
}
}
@media screen and (min-width: 48em) {
menu {
columns: 4;
}
}
:root {
--meter-length: 0;
}
.meter {
height: 0.75em;
border-radius: 0.5em;
border: 1px solid rgb(127 127 145 / 51.6%);
width: min(18em, calc(100vw - 8.9375em));
position: relative;
background-color: rgb(127 127 127 / 16.4%);
overflow: hidden;
}
.meter::before {
position: absolute;
content: '';
height: 100%;
width: var(--meter-length);
background-color: #00a960;
}
.meter::after {
position: absolute;
content: '';
width: 100%;
height: 100%;
background: linear-gradient(
to right,
transparent calc(16.6666667% - 0.03125em),
rgb(127 127 145 / 51.6%) calc(16.6666667% - 0.03125em) calc(16.6666667% + 0.03125em),
transparent calc(16.6666667% + 0.03125em) calc(33.3333333% - 0.03125em),
rgb(127 127 145 / 51.6%) calc(33.3333333% - 0.03125em) calc(33.3333333% + 0.03125em),
transparent calc(33.3333333% + 0.03125em) calc(50% - 0.03125em),
rgb(127 127 145 / 51.6%) calc(50% - 0.03125em) calc(50% + 0.03125em),
transparent calc(50% + 0.03125em) calc(66.6666667% - 0.03125em),
rgb(127 127 145 / 51.6%) calc(66.6666667% - 0.03125em) calc(66.6666667% + 0.03125em),
transparent calc(66.6666667% + 0.03125em) calc(83.3333333% - 0.03125em),
rgb(127 127 145 / 51.6%) calc(83.3333333% - 0.03125em) calc(83.3333333% + 0.03125em),
transparent calc(83.3333333% + 0.03125em)
);
}
select[id$="-select"] {
margin-bottom: 1.5em;
}
button[id^="limit-"] {
margin-top: 0.25em;
}
menu:empty {
margin: 0.25em 0;
}
.info::before {
content: "\002139\00fe0e";
text-decoration: dotted underline;
}
#rivals {
margin-top: 0.5em;
min-height: 2.5em;
}
@media (min-width: 39em) {
#stats-display {
display: grid;
width: fit-content;
grid-template-columns: auto auto;
}
#rivals {
margin-left: 1em;
}
}
#checkbox-all {
position: absolute;
left: 1.75em;
}
label[for="checkbox-all"] {
padding-left: 0.25em;
}
#output td {
padding: 0 0.5em;
}
#kart-preview img,
#rivals img {
margin-bottom: -0.75em;
margin-left: 0.25em;
}