-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.module.css
More file actions
65 lines (57 loc) · 1.07 KB
/
index.module.css
File metadata and controls
65 lines (57 loc) · 1.07 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
@reference "../../styles/index.css";
.switch {
@apply inline-flex
justify-end
gap-3;
.label {
@apply cursor-pointer
text-sm
font-medium
text-neutral-800
select-none
dark:text-neutral-200;
}
.input {
@apply sr-only;
}
.root {
@apply relative
inline-flex
h-6
w-10.5
cursor-pointer
items-center
rounded-full
bg-black
motion-safe:transition-colors
motion-safe:duration-100
motion-safe:ease-out
dark:bg-neutral-700;
}
.input:focus-visible + .root {
@apply ring-2
ring-green-500
ring-offset-2
ring-offset-neutral-100
dark:ring-green-400
dark:ring-offset-neutral-900;
}
.input:checked + .root {
@apply bg-green-600;
}
.thumb {
@apply pointer-events-none
block
size-5
translate-x-0.5
rounded-full
bg-white
ring-0
motion-safe:transition-transform
motion-safe:duration-100
motion-safe:ease-out;
}
.input:checked + .root .thumb {
@apply translate-x-5;
}
}