-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtop.css
218 lines (202 loc) · 3.74 KB
/
top.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
@media (orientation: portrait) {
:root {
font-size: 1.5vh;
}
}
main {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 0;
}
img {
min-height: 1em;
max-height: 1em;
min-width: 1em;
max-width: 1em;
vertical-align: middle;
padding-inline: .15em;
}
table, tr, th, td {
border: none;
}
th {
position: sticky;
top: calc(var(--nav-height) + 14rem + var(--padding-top) * 2);
padding-bottom: .2rem;
font-weight: 700;
background-color: var(--highlight-color);
box-shadow: inset 0 -.2rem var(--primary-color);
z-index: 40;
}
th.sortable {
cursor: pointer;
}
.table-auras::after {
content: attr(data-short);
}
@media (orientation: landscape) {
th {
top: calc(var(--nav-height) + 6rem + var(--padding-top) * 2);
}
.table-auras {
min-width: 2rem;
}
.table-auras::after {
content: attr(data-full);
}
}
td {
padding-inline: .25rem;
background-color: var(--background);
background-clip: padding-box;
text-align: center;
}
td.table-dps {
min-width: 4rem;
width: 5rem;
}
td.table-dmg {
min-width: 5.1rem;
width: 6rem;
}
td:is(.table-dmg, .table-dps) {
text-align: right;
}
td.table-r {
min-width: 4.75rem;
text-align: right;
}
td.table-t {
min-width: 2.6rem;
width: 6ch;
}
td.table-n {
width: 13rem;
text-align: left;
overflow: hidden;
white-space: nowrap;
--min-width: 3rem;
}
#table-speedrun td.table-n {
width: 17rem;
}
td.table-dummy-name {
width: 1rem;
}
td.table-n a {
text-shadow: 0 0 3em currentColor;
}
td.table-points {
min-width: 4rem;
}
tbody tr {
counter-increment: rowNumber;
}
td.table-n::before {
display: inline-block;
content: counter(rowNumber);
min-width: var(--min-width);
text-align: right;
}
tbody > tr:nth-child(odd) > td {
background-color: hsl(0, 0%, 3%);
}
@media (orientation: portrait) {
.table-cls {
display: none;
}
}
@media (orientation: portrait) {
td.table-n {
max-width: calc(100vw - 21rem);
}
td.table-n {
--min-width: 2.5rem;
}
td {
padding-inline: .1rem;
}
}
#table-top {
padding-bottom: 5rem;
}
select:disabled,
input:disabled + label {
opacity: .15;
}
#select-server {grid-area: serv;}
#select-instance {grid-area: inst;}
#select-boss {grid-area: boss;}
#select-size {grid-area: size;}
#combine-label {grid-area: comb;}
#difficulty-label {grid-area: diff;}
#select-class {grid-area: clss;}
#select-spec {grid-area: spec;}
#select-instance,
#select-boss {
min-width: 21ch;
}
#controls-wrap {
display: grid;
grid-auto-flow: row;
place-items: center;
position: sticky;
top: var(--margin-top);
width: 100%;
max-width: 55rem;
padding-bottom: var(--padding-top);
background-color: var(--background);
z-index: 5;
}
#controls {
display: grid;
width: 100%;
grid-template-areas:
'serv serv serv serv serv serv'
'inst inst inst inst inst inst'
'boss boss boss boss boss boss'
'comb comb size size diff diff'
'clss clss clss spec spec spec';
gap: .5rem;
}
#controls :is(select, label) {
text-align: center;
font-size: 150%;
}
#controls-limits {
font-size: 125%;
}
@media (orientation: landscape) {
#controls {
/* padding-inline: 5rem; */
grid-template-areas:
'inst inst boss boss boss boss size diff diff'
'serv serv clss clss spec spec spec comb comb';
}
#controls-wrap {
padding-inline: 5rem;
}
}
#the-tooltip {
position: fixed;
width: fit-content;
background-color: var(--background);
padding: .25em;
border-radius: 6px;
box-shadow: inset 0 0 .25rem .1rem var(--primary-color), 0 0 .5rem .1rem var(--primary-color);
z-index: 5;
}
#the-tooltip td {
min-width: fit-content;
text-align: right;
}
#the-tooltip td.count {
min-width: 2rem;
}
#the-tooltip td.uptime {
min-width: 3rem;
}
#the-tooltip tr.hidden {
display: none;
}