Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
76 lines (70 loc) · 2.44 KB
/
Copy pathstyles.css
File metadata and controls
76 lines (70 loc) · 2.44 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
/* =========================
Text Selection Highlight
========================= */
::selection {
background: rgba(239, 18, 55, 0.25); /* brand red at 25% */
}
::-moz-selection {
background: rgba(239, 18, 55, 0.25);
}
/* =========================
Backdrop
========================= */
.site-bg {
--site-bg-0: #c1caff;
--site-bg-1: #b1d8ff;
--site-bg-2: #d6b4fb;
--site-bg-3: #f6a5c6;
--site-bg-4: #f2bfc9;
--site-bg-5: #b9d0fe;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
height: 100lvh;
z-index: -30;
overflow: hidden;
pointer-events: none;
background:
radial-gradient(50% 60% at 12% 18%, var(--site-bg-1), transparent),
radial-gradient(45% 55% at 88% 22%, var(--site-bg-2), transparent),
radial-gradient(55% 60% at 78% 88%, var(--site-bg-3), transparent),
radial-gradient(45% 55% at 20% 85%, var(--site-bg-4), transparent),
var(--site-bg-0);
}
.dark .site-bg {
--site-bg-0: #232a6a;
--site-bg-1: #12386d;
--site-bg-2: #3a1766;
--site-bg-3: #580d3d;
--site-bg-4: #5a273b;
--site-bg-5: #1d306d;
}
.site-bg > canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.8s ease;
}
.site-bg.is-ready > canvas {
opacity: 1;
}
/* =========================
Backdrop Dither
========================= */
body::after {
content: "";
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
opacity: 0.01;
background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='d'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20color-interpolation-filters='sRGB'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.85'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type='linear'%20slope='3'%20intercept='-1'/%3E%3CfeFuncG%20type='linear'%20slope='3'%20intercept='-1'/%3E%3CfeFuncB%20type='linear'%20slope='3'%20intercept='-1'/%3E%3CfeFuncA%20type='linear'%20slope='0'%20intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='160'%20height='160'%20filter='url(%23d)'/%3E%3C/svg%3E");
background-size: 160px 160px;
background-repeat: repeat;
will-change: transform; /* own layer: rasterize the noise tile once, then composite */
}