-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogo.css
80 lines (69 loc) · 1.46 KB
/
logo.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
:root {
interpolate-size: allow-keywords;
}
@property --border {
inherits: false;
initial-value: 0%;
syntax: '<percentage>';
}
@property --background {
inherits: false;
initial-value: 0%;
syntax: '<percentage>';
}
.Logo {
align-content: center;
aspect-ratio: 1.618;
border: .15rem solid currentColor;
border-image-slice: 1;
border-image-source: conic-gradient(
transparent, transparent var(--border),
currentColor var(--border), currentColor 100%);
font-size: 2.5rem;
font-weight: normal;
padding: .25rem;
text-transform: uppercase;
transition:
--border 4.5s,
width 1.25s 4.5s;
transition-timing-function: ease-in-out;
width: min-content;
word-spacing: .5ex;
@starting-style {
--border: 100%;
width: 6.3ex;
}
:has(> &) {
display: grid;
place-items: center;
}
html:not(:has([name="ShowLogo"]:checked)) & {
display: none;
}
span {
background-clip: text;
background-image: linear-gradient(to left,
transparent, transparent var(--background),
var(--color) var(--background), var(--color) 100%);
);
color: transparent;
transition-property: --background;
@starting-style {
--background: 100%;
}
&:nth-child(1) {
transition-delay: 0;
transition-duration: 1s;
transition-timing-function: steps(3, end);
}
&:nth-child(2) {
transition-delay: 1.5s;
transition-duration: 1s;
transition-timing-function: steps(1, start);
}
&:nth-child(3) {
transition-delay: 2s;
transition-duration: 2s;
}
}
}