-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
236 lines (191 loc) · 5.06 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
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
:root {
--font-fluid-base: 18px;
--font-fluid-ratio: 1.1;
--color-blue-300: oklch(0.849609 0.078125 240);
--color-blue-500: oklch(0.71875 0.151562 240);
--color-blue-600: oklch(0.605469 0.135937 240);
--color-blue-700: oklch(0.517578 0.115625 240);
--color-green-500: oklch(0.714844 0.151562 123.333);
--color-green-600: oklch(0.603516 0.135937 123.333);
--color-indigo-500: oklch(0.726563 0.151562 260);
--color-indigo-600: oklch(0.613281 0.135937 260);
--color-orange-500: oklch(0.738281 0.151562 43.3333);
--color-orange-600: oklch(0.623047 0.135937 43.3333);
--color-red-300: oklch(0.861328 0.078125 20);
--color-red-500: oklch(0.742188 0.151562 20);
--color-red-600: oklch(0.626953 0.135937 20);
--color-red-700: oklch(0.535156 0.115625 20);
--color-sand-100: oklch(0.964844 0.012 75);
--color-sand-900: oklch(0.302734 0.012 75);
--color-violet-500: oklch(0.734375 0.151562 280);
--color-violet-600: oklch(0.619141 0.135937 280);
--color-yellow-500: oklch(0.726563 0.151562 90);
--color-yellow-600: oklch(0.611328 0.135937 90);
}
@media (prefers-color-scheme: light) {
:root {
--background-color: var(--color-sand-100);
--text-color: var(--color-sand-900);
}
.follow {
--follow-decoration-color: var(--color-red-300);
}
.follow:focus-visible {
--follow-decoration-color: var(--color-red-700);
}
a.follow {
--follow-decoration-color: var(--color-blue-300);
color: var(--color-blue-700);
}
a.follow:focus-visible {
--follow-decoration-color: var(--color-blue-700);
}
::highlight(effects-player-rainbow-1) {
color: var(--color-red-600);
}
::highlight(effects-player-rainbow-2) {
color: var(--color-orange-600);
}
::highlight(effects-player-rainbow-3) {
color: var(--color-yellow-600);
}
::highlight(effects-player-rainbow-4) {
color: var(--color-green-600);
}
::highlight(effects-player-rainbow-5) {
color: var(--color-blue-600);
}
::highlight(effects-player-rainbow-6) {
color: var(--color-indigo-600);
}
::highlight(effects-player-rainbow-7) {
color: var(--color-violet-600);
}
}
@media (prefers-color-scheme: dark) {
:root {
--background-color: var(--color-sand-900);
--text-color: var(--color-sand-100);
}
.follow {
--follow-decoration-color: var(--color-red-700);
}
.follow:focus-visible {
--follow-decoration-color: var(--color-red-300);
}
a.follow {
--follow-decoration-color: var(--color-blue-700);
color: var(--color-blue-300);
}
a.follow:focus-visible {
--follow-decoration-color: var(--color-blue-300);
}
::highlight(effects-player-rainbow-1) {
color: var(--color-red-500);
}
::highlight(effects-player-rainbow-2) {
color: var(--color-orange-500);
}
::highlight(effects-player-rainbow-3) {
color: var(--color-yellow-500);
}
::highlight(effects-player-rainbow-4) {
color: var(--color-green-500);
}
::highlight(effects-player-rainbow-5) {
color: var(--color-blue-500);
}
::highlight(effects-player-rainbow-6) {
color: var(--color-indigo-500);
}
::highlight(effects-player-rainbow-7) {
color: var(--color-violet-500);
}
}
@media (prefers-reduced-motion: reduce) {
.prefers-reduced-motion-no-preference-only {
display: none;
}
}
html {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
font-size: calc(var(--font-fluid-base) + var(--font-fluid-ratio) * 1vw);
}
body {
background-color: var(--background-color);
color: var(--text-color);
margin: 0.5rem;
}
main {
margin: 15vh auto;
max-width: 40rem;
}
p {
line-height: 1.7rem;
}
a {
color: var(--text-color);
text-decoration: none;
}
.follow {
--follow-decoration-offset: 0.25em;
--follow-decoration-height: 0.1em;
background-image: linear-gradient(90deg, var(--follow-decoration-color) 100%, transparent 0%);
background-position: bottom;
background-repeat: no-repeat;
background-size: 100% var(--follow-decoration-height);
border-radius: 0.3em;
cursor: pointer;
margin: 0 calc(var(--follow-decoration-offset) * -1);
outline: none;
padding: 0 var(--follow-decoration-offset);
transition-duration: 0.2s;
transition-property: background-size, color;
}
.follow:hover,
.follow:focus-visible {
--follow-decoration-height: 100%;
}
.follow:focus-visible {
color: var(--background-color);
}
@media (scripting: enabled) {
collapse-handle[disabled].follow,
effects-player:not([stopped]).follow {
background-image: unset;
cursor: unset;
}
}
@media (scripting: none) {
collapse-handle.follow {
background-image: unset;
cursor: unset;
}
}
@media (scripting: enabled) {
collapse-entry[opened]:not([once]) > *:not(collapse-content) {
display: none;
}
}
@media (scripting: none) {
collapse-entry:not([once]) > *:not(collapse-content) {
display: none;
}
collapse-content,
span[hidden] {
display: inline;
}
p[hidden] {
display: block;
}
}
@media (scripting: enabled) {
.no-js-only {
display: none;
}
}
@media (scripting: none) {
.js-only {
display: none;
}
}