-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.css
More file actions
528 lines (448 loc) · 12.7 KB
/
layout.css
File metadata and controls
528 lines (448 loc) · 12.7 KB
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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
/* ============================================================
OpenFeature Slidev Theme - Design Tokens & Global Styles
Extracted from: Kubecon OpenFeature Maintainer Track (ODP)
Supports: Light & Dark mode (via Slidev's .dark class)
============================================================ */
/* ----------------------------------------------------------
CSS Custom Properties (Design Tokens)
---------------------------------------------------------- */
:root {
/* Brand colors (base palette) */
--of-accent-green: #00c800;
--of-lime: #cff56a;
--of-teal: #76a5af;
/* Light mode defaults */
--of-accent-purple: #4040e0;
--of-bg: #f5f5f7;
--of-bg-soft: #eaeaec;
--of-text: #1a1a2e;
--of-text-secondary: #4a4a5a;
--of-text-muted: #6e6e7a;
--of-card-bg: rgba(0, 0, 0, 0.05);
--of-card-border: var(--of-accent-purple);
--of-code-bg: #e8e8ec;
--of-wave-opacity: 1;
--of-green-text: #007a00;
--of-logo-fill: #231f20;
--of-logo-circle: #f5f5f5;
--of-divider: rgba(0, 0, 0, 0.1);
/* Theme primary (used by Slidev internals) */
--slidev-theme-primary: var(--of-accent-purple);
}
.dark {
--of-accent-purple: #7b7bff;
--of-bg: #3c3f47;
--of-bg-soft: #33363d;
--of-text: #ffffff;
--of-text-secondary: #e3e3e3;
--of-text-muted: #999999;
--of-card-bg: rgba(255, 255, 255, 0.08);
--of-card-border: var(--of-accent-purple);
--of-code-bg: #2d2f36;
--of-wave-opacity: 1;
--of-green-text: #3ddc3d;
--of-logo-fill: #ffffff;
--of-logo-circle: #f5f5f5;
--of-divider: rgba(255, 255, 255, 0.1);
}
/* ----------------------------------------------------------
Global Base Styles
---------------------------------------------------------- */
.slidev-layout {
background-color: var(--of-bg);
color: var(--of-text);
font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
}
/* ----------------------------------------------------------
Typography
---------------------------------------------------------- */
.slidev-layout h1 {
@apply font-bold;
color: var(--of-text);
line-height: 1.2;
}
.slidev-layout h2 {
@apply font-semibold;
color: var(--of-text);
line-height: 1.3;
}
.slidev-layout h3 {
@apply font-semibold;
color: var(--of-text-secondary);
}
.slidev-layout p,
.slidev-layout li {
color: var(--of-text-secondary);
}
.slidev-layout a {
color: var(--of-accent-purple);
text-decoration: none;
border-bottom: 1px solid transparent;
transition: border-color 0.2s ease;
}
.slidev-layout a:hover {
border-bottom-color: var(--of-accent-purple);
}
.slidev-layout strong {
color: var(--of-text);
font-weight: 600;
}
.slidev-layout blockquote {
border-left: 4px solid var(--of-accent-purple);
padding-left: 1rem;
color: var(--of-text-secondary);
font-style: italic;
}
/* Accent text utilities */
.slidev-layout .text-accent {
color: var(--of-accent-purple);
font-weight: 600;
}
.slidev-layout .text-green {
color: var(--of-green-text);
font-weight: 600;
}
.slidev-layout .text-muted {
color: var(--of-text-muted);
}
.slidev-layout .text-handwritten {
font-family: "Architects Daughter", cursive;
}
/* ----------------------------------------------------------
Code Blocks
---------------------------------------------------------- */
.slidev-layout :not(pre) > code {
background-color: var(--of-code-bg);
padding: 0.15em 0.4em;
border-radius: 4px;
font-size: 0.9em;
}
/* ----------------------------------------------------------
Tables
---------------------------------------------------------- */
.slidev-layout table {
width: 100%;
border-collapse: collapse;
}
.slidev-layout th {
color: var(--of-text);
font-weight: 600;
border-bottom: 2px solid var(--of-accent-purple);
padding: 0.5rem 0.75rem;
text-align: left;
}
.slidev-layout td {
color: var(--of-text-secondary);
border-bottom: 1px solid var(--of-divider);
padding: 0.5rem 0.75rem;
}
/* ----------------------------------------------------------
Cards (matching ODP card pattern: #eeeeee fill + #5d5dff stroke)
---------------------------------------------------------- */
.slidev-layout .card {
background-color: var(--of-card-bg);
border: 2px solid var(--of-card-border);
border-radius: 12px;
padding: 1.25rem 1.5rem;
}
/* ----------------------------------------------------------
Wave Animation Keyframes
Each pseudo-element is taller than the container and
extends below it, so the bottom edge is never visible.
Multi-stop 2D translate paths create organic side-to-side
drift. Green and purple counter-phase at different speeds.
---------------------------------------------------------- */
@keyframes green-drift {
0% { transform: translate(0%, 0%) scale(1); }
20% { transform: translate(-6%, -1%) scale(1.02); }
40% { transform: translate(-12%, 0.5%) scale(1.01); }
60% { transform: translate(-4%, -0.5%) scale(1.03); }
80% { transform: translate(-10%, 0%) scale(1.01); }
100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes purple-drift {
0% { transform: translate(-15%, 0%) scale(1); }
25% { transform: translate(-8%, -1%) scale(1.02); }
50% { transform: translate(0%, 0.5%) scale(1.01); }
75% { transform: translate(-10%, -0.5%) scale(1.03); }
100% { transform: translate(-15%, 0%) scale(1); }
}
@keyframes green-drift-prominent {
0% { transform: translate(0%, 0%) scale(1); }
15% { transform: translate(-8%, -1%) scale(1.03); }
35% { transform: translate(-16%, 0.5%) scale(1.01); }
55% { transform: translate(-5%, -1%) scale(1.04); }
75% { transform: translate(-14%, 0%) scale(1.02); }
100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes purple-drift-prominent {
0% { transform: translate(-15%, 0%) scale(1); }
20% { transform: translate(-6%, -1%) scale(1.03); }
45% { transform: translate(0%, 0.5%) scale(1.01); }
70% { transform: translate(-12%, -1%) scale(1.04); }
100% { transform: translate(-15%, 0%) scale(1); }
}
/* ----------------------------------------------------------
Wave Background Decoration
Pseudo-elements are 130% wide x 120% tall, positioned so
they overhang on the right and below. overflow:hidden on
the parent clips them. No hard edges are ever visible
because gradients fade to transparent well inside the
element boundaries.
---------------------------------------------------------- */
.wave-bg {
position: relative;
overflow: hidden;
isolation: isolate;
}
.wave-bg::before,
.wave-bg::after {
content: "";
position: absolute;
bottom: -20%;
left: 0;
width: 130%;
height: 120%;
pointer-events: none;
z-index: -1;
will-change: transform;
transform-origin: center bottom;
}
/* Green wave layer */
.wave-bg::before {
background:
radial-gradient(
ellipse 80% 50% at 5% 85%,
rgba(0, 200, 0, calc(0.55 * var(--of-wave-opacity))) 0%,
transparent 70%
),
radial-gradient(
ellipse 60% 40% at 25% 80%,
rgba(0, 200, 0, calc(0.4 * var(--of-wave-opacity))) 0%,
transparent 60%
),
radial-gradient(
ellipse 70% 35% at 75% 85%,
rgba(0, 200, 0, calc(0.3 * var(--of-wave-opacity))) 0%,
transparent 50%
);
animation: green-drift 8s ease-in-out infinite;
}
/* Blue/purple wave layer */
.wave-bg::after {
background:
radial-gradient(
ellipse 70% 45% at 30% 85%,
rgba(123, 123, 255, calc(0.55 * var(--of-wave-opacity))) 0%,
transparent 65%
),
radial-gradient(
ellipse 80% 35% at 70% 85%,
rgba(123, 123, 255, calc(0.45 * var(--of-wave-opacity))) 0%,
transparent 55%
),
radial-gradient(
ellipse 50% 30% at 50% 80%,
rgba(123, 123, 255, calc(0.3 * var(--of-wave-opacity))) 0%,
transparent 50%
);
animation: purple-drift 10s ease-in-out infinite;
}
/* Cover/section slides get more prominent waves with wider drift */
.wave-bg-prominent::before {
background:
radial-gradient(
ellipse 90% 60% at 5% 85%,
rgba(0, 200, 0, calc(0.7 * var(--of-wave-opacity))) 0%,
transparent 70%
),
radial-gradient(
ellipse 70% 50% at 30% 80%,
rgba(0, 200, 0, calc(0.5 * var(--of-wave-opacity))) 0%,
transparent 60%
),
radial-gradient(
ellipse 80% 45% at 75% 85%,
rgba(0, 200, 0, calc(0.4 * var(--of-wave-opacity))) 0%,
transparent 55%
);
animation: green-drift-prominent 7s ease-in-out infinite;
}
.wave-bg-prominent::after {
background:
radial-gradient(
ellipse 80% 55% at 25% 85%,
rgba(123, 123, 255, calc(0.7 * var(--of-wave-opacity))) 0%,
transparent 65%
),
radial-gradient(
ellipse 90% 45% at 65% 85%,
rgba(123, 123, 255, calc(0.55 * var(--of-wave-opacity))) 0%,
transparent 60%
),
radial-gradient(
ellipse 60% 35% at 50% 80%,
rgba(123, 123, 255, calc(0.4 * var(--of-wave-opacity))) 0%,
transparent 50%
);
animation: purple-drift-prominent 9s ease-in-out infinite;
}
/* ----------------------------------------------------------
Layout: Cover (maps to ODP TITLE master)
Full-height centered content, prominent waves, no logo
---------------------------------------------------------- */
.slidev-layout.cover {
@apply h-full grid;
place-items: center;
h1 {
@apply text-5xl leading-tight;
}
h1 + p {
@apply -mt-2 opacity-60 mb-4 text-xl;
color: var(--of-text-secondary);
}
p + h2,
ul + h2,
table + h2 {
@apply mt-10;
}
}
/* ----------------------------------------------------------
Layout: Default (maps to ODP TITLE_AND_BODY master)
Title bar at top + body content area
---------------------------------------------------------- */
.slidev-layout.default {
@apply h-full px-12 py-10;
display: flex;
flex-direction: column;
h1 {
@apply text-3xl mb-6 pb-2;
border-bottom: 2px solid var(--of-divider);
}
.default-content {
@apply flex-1;
}
}
/* ----------------------------------------------------------
Layout: Section (maps to ODP SECTION_HEADER master)
Large centered text for section dividers
---------------------------------------------------------- */
.slidev-layout.section {
@apply h-full grid;
place-items: center;
text-align: center;
h1 {
@apply text-5xl leading-tight;
}
p {
@apply text-xl mt-4;
color: var(--of-text-secondary);
}
}
/* ----------------------------------------------------------
Layout: Intro (introduction / about slide)
---------------------------------------------------------- */
.slidev-layout.intro {
@apply h-full grid;
place-items: center;
h1 {
@apply text-5xl leading-tight;
}
h1 + p {
@apply -mt-2 opacity-60 mb-4 text-lg;
color: var(--of-text-secondary);
}
p + h2,
ul + h2,
table + h2 {
@apply mt-10;
}
}
/* ----------------------------------------------------------
Layout: Two Columns
---------------------------------------------------------- */
.slidev-layout.two-cols {
@apply h-full px-12 py-10;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto 1fr;
gap: 0 2rem;
.two-cols-header {
grid-column: 1 / -1;
}
h1 {
@apply text-3xl mb-6 pb-2;
border-bottom: 2px solid var(--of-divider);
grid-column: 1 / -1;
}
}
/* ----------------------------------------------------------
Layout: Image Right / Image Left
---------------------------------------------------------- */
.slidev-layout.image-right,
.slidev-layout.image-left {
@apply h-full;
display: grid;
grid-template-columns: 1fr 1fr;
.content {
@apply px-10 py-10 flex flex-col justify-center;
}
.image-container {
@apply h-full w-full;
background-size: cover;
background-position: center;
}
h1 {
@apply text-3xl mb-4;
}
}
.slidev-layout.image-left {
grid-template-columns: 1fr 1fr;
.image-container {
order: -1;
}
}
/* ----------------------------------------------------------
Layout: End (closing slide)
---------------------------------------------------------- */
.slidev-layout.end {
@apply h-full grid;
place-items: center;
text-align: center;
h1 {
@apply text-4xl leading-tight mb-4;
}
p {
@apply text-lg;
color: var(--of-text-secondary);
}
}
/* ----------------------------------------------------------
List Styling (matching ODP bullet hierarchy)
---------------------------------------------------------- */
.slidev-layout ul {
list-style: none;
padding-left: 0;
}
.slidev-layout ul > li {
position: relative;
padding-left: 1.5em;
}
.slidev-layout ul > li::before {
content: "\2022";
position: absolute;
left: 0.25em;
color: var(--of-accent-purple);
font-weight: bold;
}
.slidev-layout ul ul > li::before {
content: "\2013";
color: var(--of-text-muted);
}
.slidev-layout ol {
padding-left: 1.5em;
}
.slidev-layout ol > li::marker {
color: var(--of-accent-purple);
font-weight: 600;
}