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
.check-pulse {
display: inline-flex;
align-items: center;
gap: 12px;
cursor: pointer;
user-select: none;
font-family: system-ui, sans-serif;
color: #9a9a9a;
font-size: 16px;
font-weight: 500;
}
.check-pulse__input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.check-pulse__box {
position: relative;
width: 26px;
height: 26px;
flex-shrink: 0;
border-radius: 8px;
background: #1c1c1f;
border: 2px solid #454550;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(94, 129, 255, 0);
transition: background 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.check-pulse__mark {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
padding: 2px;
}
.check-pulse__mark-path {
stroke-dasharray: 24;
stroke-dashoffset: 24;
transition: stroke-dashoffset 0.35s ease 0.05s;
}
.check-pulse__ring {
position: absolute;
inset: -6px;
border-radius: 12px;
border: 2px solid #7c93ff;
opacity: 0;
transform: scale(0.6);
pointer-events: none;
}
.check-pulse__input:checked ~ .check-pulse__box {
background: linear-gradient(145deg, #6a7dff, #3a54e0);
border-color: #7c93ff;
transform: scale(1.08);
box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 4px 14px 0 rgba(75, 100, 255, 0.55);
}
.check-pulse__input:checked ~ .check-pulse__box .check-pulse__mark-path {
stroke-dashoffset: 0;
}
.check-pulse__input:checked ~ .check-pulse__box .check-pulse__ring {
animation: ring-burst 0.6s ease-out forwards;
}
.check-pulse__input:active ~ .check-pulse__box {
transform: scale(0.92);
}
.check-pulse__input:focus-visible ~ .check-pulse__box {
box-shadow: 0 0 0 3px rgba(124, 147, 255, 0.4);
}
.check-pulse__input:checked ~ .check-pulse__label {
color: #f2f2f5;
}
.check-pulse__label {
transition: color 0.3s ease;
}
@keyframes ring-burst {
0% {
opacity: 0.9;
transform: scale(0.7);
}
100% {
opacity: 0;
transform: scale(1.5);
}
}