-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
64 lines (56 loc) · 1.44 KB
/
Copy pathcontent.css
File metadata and controls
64 lines (56 loc) · 1.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
:root {
--cc-font: 'Vintaface-Regular', system-ui, sans-serif;
--cc-accent: #6655ff;
--cc-text: #edd4ff;
--cc-surface: rgb(20 0 40 / 40%);
--cc-x-bg: oklch(from var(--cc-accent) .3 calc(c * .5) h / .2);
--cc-shine: 200ms;
}
html.codecopy-on {
code, pre { cursor: copy; }
&.codecopy-alt { cursor: copy; }
}
.codecopy-x {
background: var(--cc-x-bg);
outline: 4px solid var(--cc-accent);
outline-offset: 6px;
border-radius: 4px;
color: var(--cc-accent) !important;
& * { color: inherit !important; }
}
@keyframes codecopy-shine {
from {
box-shadow:
0 0 0 2px var(--cc-accent),
0 0 10px 3px hsl(260deg 70% 60% / 40%),
0 0 22px 8px hsl(260deg 70% 60% / 30%),
0 0 40px 14px hsl(260deg 70% 60% / 20%);
}
to { box-shadow: 0 0 0 0 transparent; }
}
code.codecopy-shine,
pre.codecopy-shine { animation: codecopy-shine var(--cc-shine) ease-out; border-radius: 4px; }
#codecopy-toast {
position: fixed;
inset: 50% auto auto 50%;
translate: -50% -50%;
padding: 18px 28px;
border-radius: 20px;
background: var(--cc-surface);
color: var(--cc-text);
font: 400 26px/1.2 var(--cc-font);
letter-spacing: 0.02em;
z-index: 2147483647;
opacity: 0;
scale: 0.97;
pointer-events: none;
mix-blend-mode: difference;
border: 4px solid hsl(260deg 55% 75% / 14%);
box-shadow: 0 8px 32px rgb(8 0 24 / 38%);
backdrop-filter: blur(10px) saturate(1.05);
transition: opacity 0.32s ease-out, scale 0.32s ease-out;
&.show {
opacity: 1;
scale: 1;
}
}