-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.less
358 lines (299 loc) · 7.79 KB
/
style.less
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
@import url("reset.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&family=Overpass:ital,wght@0,100..900;1,100..900&family=Russo+One&family=Scada:ital,wght@0,400;0,700;1,400;1,700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
:root {
--clr-accent: #dcac7f;
--clr-bg: #1e2733;
--clr-comp: #496c88;
--clr-int: #7ca296;
--clr-err: #a06a77;
--clr-vis: #514257;
--clr-txt: #0a0b0c;
--clr-bother: #423834;
--clr-pure: #e3ddce;
}
html {
height: max-content;
min-height: 100%;
width: 100%;
}
body {
display: flex;
height: 100%;
min-height: 100vh;
flex-flow: column nowrap;
align-content: space-between;
justify-content: space-between;
color: var(--clr-text);
background-color: var(--clr-pure);
background-image: url(https://i.pinimg.com/originals/71/5d/d0/715dd04e2c0106ad52983babd33795d5.jpg);
background-blend-mode: color-burn;
font-family: "Noto Sans", sans-serif;
writing-mode: horizontal-tb;
}
a:link {
color: var(--clr-int);
text-decoration: none;
}
a:visited {
color: var(--clr-vis);
}
/* HEADER */
header {
background-color: var(--clr-accent);
display: flex;
flex-flow: row nowrap;
align-content: space-between;
justify-content: space-between;
align-items: center;
padding-inline-start: 1em;
height: 7vh;
}
header > h1 {
font-family: "Russo One", sans-serif;
font-size: 3.35vh;
color: var(--clr-pure);
text-shadow: 0.15ch 0.15ch color-mix(in oklab, var(--clr-accent), var(--clr-bother));
}
header ul {
display: flex;
}
header ul > li {
display: inline-block;
}
header a {
background-color: var(--clr-int);
line-height: 7vh;
display: inline-block;
padding-inline: 1ch;
white-space: nowrap;
}
header a:link {
color: var(--clr-pure);
}
header a:visited {
color: var(--clr-pure);
}
header a.current-page {
background-color: color-mix(in oklab, var(--clr-int) 90%, #121);
border-inline-start: 1ch solid color-mix(in oklab, var(--clr-int) 70%, #121);
}
header ul > li:last-child > a {
padding-inline-end: 1em;
}
main {
margin: 1vw;
height: fit-content;
min-height: 80vh;
/* Without it footer is wacky */
display: flex;
flex-flow: row wrap;
justify-content: center;
}
@media only screen and (max-width: 1000px) {
main {
margin: 0 !important;
}
article {
max-width: 100% !important;
width: 100% !important;
}
.main-container {
flex-flow: column nowrap !important;
}
.tab {
flex-flow: row nowrap !important;
}
.tab button {
box-shadow: 1mm 0mm 5px 0 color-mix(in oklab, var(--button-color), rgba(0, 0, 0, 0.5) 30%) !important;
}
}
footer {
background-color: var(--clr-bother);
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-content: center;
height: 6.5vh;
}
footer > address {
display: flex;
flex-flow: row wrap;
align-content: center;
gap: 1em;
}
h1 {
font-weight: 500;
}
article {
max-width: 70ch;
width: 100vw;
animation: article-folds-out 1s;
z-index: 10;
min-height: 80vh;
font-family: 'Source Sans 3', sans-serif;
box-shadow: 0 1mm 0px 0 color-mix(in oklab, var(--clr-accent), rgba(0, 0, 0, 0.5) 30%);
p {
line-height: 1.25em;
&:not(:last-child) {
margin-block-end: 1em;
}
}
h2 {
font-size: 1.4em;
background-image: linear-gradient(0.25turn in oklab, var(--h1-bg), transparent);
padding-inline-start: 0.5em;
margin-inline: -0.7em;
margin-block-end: 0.5em;
color: var(--clr-pure);
font-family: "Russo One", sans-serif;
text-shadow: .18ch .18ch color-mix(in oklab, var(--h1-bg), var(--clr-bother));
}
h3 {
display: inline-block;
font-size: 1.1em;
background-color: var(--h1-bg);
padding-inline: 0.25em;
padding-block: 0.15em;
margin-block-end: 0.5em;
color: var(--clr-pure);
font-family: "Russo One", sans-serif;
text-shadow: .18ch .18ch color-mix(in oklab, var(--h1-bg), var(--clr-bother));
}
&:not(p + :where(h2, h3, h4, h5, h6)) :where(h2, h3, h4, h5, h6) {
margin-block-start: 0.5em;
}
}
article > section {
background: color-mix(in oklab, var(--clr-accent), var(--clr-pure));
border: 6px solid var(--clr-accent);
padding: 1em;
height: fit-content;
min-height: 100%;
}
article:not(:has(section)) {
background: color-mix(in oklab, var(--clr-accent), var(--clr-pure));
border: 6px solid var(--clr-accent);
padding: 1em;
}
article:has(> *:first-child:is(h1)) > section {
border-block-start: none;
padding-block-start: 0.5em;
min-height: calc(100% - 50px);
}
article:has(> *:first-child:is(h1)) > h1 {
max-height: 50px;
line-height: 50px;
padding-inline-start: 1em;
font-family: "Russo One", sans-serif;
font-size: 3vh;
color: var(--clr-pure);
text-shadow: .18ch .18ch color-mix(in oklab, var(--h1-bg), var(--clr-bother));
overflow: auto;
display: block;
background-color: var(--h1-bg);
scrollbar-color: color-mix(in oklab, var(--h1-bg), black 10%) var(--h1-bg);
scrollbar-width: thin;
}
article:has(> *:first-child:is(h1)):has(img) > h1 {
padding-inline-end: 200px;
scrollbar-width: none;
}
#Funk,
button[onClick*="Funk"] {
--h1-bg: var(--clr-comp)
}
#Main,
button[onClick*="Main"] {
--h1-bg: var(--clr-int)
}
@keyframes article-folds-out {
0% {}
100% {}
}
.main-container {
display: flex;
flex-flow: row-reverse nowrap;
height: fit-content;
min-height: 100%;
--h1-bg: fuchsia;
}
article img {
border: 6px solid var(--h1-bg);
margin: 1em;
margin-block-start: 0.5em;
&.right {
float: inline-end;
margin-inline-end: -1em;
}
&.left {
float: inline-start;
margin-inline-start: -1em;
}
}
:where(article, section) > *:first-child:is(img) {
float: inline-end;
width: 200px;
margin-block-start: -3.5em;
margin-inline-end: -1em;
}
article :where(ol, ul) {
margin-inline-start: 1em;
li:not(:first-child) {
margin-block-start: 0.5em;
}
}
article ol {
list-style: decimal;
}
article ul {
list-style: square;
}
/* Style the tab */
.tab {
overflow: visible;
display: flex;
flex-flow: column nowrap;
}
/* Style the buttons that are used to open the tab content */
.tab button {
/*
--button-color: color-mix(in oklab, var(--clr-accent) 85%, var(--clr-err));
*/
--button-color: fuchsia;
border: none;
font-size: 1.2em;
height: 50px;
padding-inline-start: 0.5em;
box-shadow: 0 1mm 5px 0 color-mix(in oklab, var(--button-color), rgba(0, 0, 0, 0.5) 30%);
background-color: var(--button-color);
max-width: 6em;
text-overflow: clip;
overflow: auto;
scrollbar-color: color-mix(in oklab, var(--button-color), black 30%) color-mix(in oklab, var(--button-color), black 10%);
scrollbar-width: thin;
}
.tab (@indexstart, @index) when (@indexstart < @index ) {
button:nth-child(@{indexstart}) {
width: 100% - (@indexstart - 1) * 4%;
--button-color: color-mix(in oklab, var(--clr-accent), var(--clr-err) 0% + (@indexstart - 1) * 12.33%);
z-index: @index - @indexstart;
}
.tab (@indexstart + 1, @index);
}
.tab (1, 8);
.tab button.active {
--button-color: var(--clr-accent);
width: 100%;
padding-inline-start: 0;
}
.main-container:has(.tabcontent-display *:first-child:is(h1)) .tab button.active {
--button-color: var(--h1-bg);
color: var(--clr-pure);
}
/* Style the tab content */
.tabcontent {
display: none;
}
.tabcontent-display {
display: block;
}