-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
123 lines (101 loc) · 1.75 KB
/
main.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
:root {
--yellow: #CC1E;
--gray: #333D;
--red: #D22D;
--orange: #E72D;
--green: #2D2D;
--blue: #22DD;
--indigo: #72DD;
--violet: #F0D9;
--bg: var(--yellow);
--fg: var(--gray);
--accent: var(--red);
--player-height: 2rem;
}
@media(prefers-color-scheme: dark) {
:root {
--bg: var(--gray);
--fg: var(--yellow);
}
}
body, html {
background-color: var(--bg);
color: var(--fg);
}
#scrollbar {
border: 0.2rem solid var(--fg);
background-color: var(--bg);
}
#slider {
width: 1rem;
height: 1rem;
border: 0.25rem solid var(--fg);
background-color: var(--bg);
margin: 0.25rem;
position: relative;
}
#slider:hover {
background-color: var(--accent);
}
#slider.active {
background-color: var(--green);
}
#music {
display: flex;
width: 95%;
height: var(--player-height);
border: thin solid var(--fg);
position: fixed;
bottom: 0;
}
.loading + #music {
display: none;
}
html, body, #content {
margin: 0;
padding: 0;
}
html, body, #display, .markup {
height: 100svh;
}
#content {
height: calc(100svh - var(--player-height));
margin-bottom: var(--player-height);
}
html, body, #display, #content, #content > .single, .markup {
display: flex;
flex-direction: column;
flex-grow: 1;
}
body, #content.loading {
flex-direction: row;
}
#content.loading {
flex-grow: unset;
flex-wrap: wrap;
gap: 0.25vmin;
align-items: center;
}
#content.loading img {
width: 8vmin;
height: 8vmin;
}
#content {
list-style: none;
}
.loading img {
border: 0.5vmin solid var(--orange);
}
.loaded img {
border-color: var(--green);
}
.errored img {
border-color: var(--red);
}
#content .single, #content .single img {
max-height: 100%;
max-width: 100%;
}
#content .single img {
object-fit: contain;
}