-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrols.css
50 lines (45 loc) · 921 Bytes
/
controls.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
#Controls {
border-color: LightGray;
border-radius: .25rem;
font-size: .5rem;
inset-block-end: anchor(bottom);
inset-block-start: auto;
inset-inline-end: anchor(right);
inset-inline-start: auto;
list-style-type: none;
padding: .33rem;
position: absolute;
position-anchor: --joystick;
pointer-events: all;
transition:
opacity .15s ease-in,
scale .15s ease-in,
display .15s ease-in;
transition-timing-function: ease-in;
transition-behavior: allow-discrete;
transform-origin: bottom right;
&:not(:popover-open) {
opacity: 0;
scale: .66;
transition-duration: .1s;
transition-timing-function: ease-out;
}
@starting-style {
opacity: 0;
scale: .66;
}
li + li {
margin-top: .25rem;
}
label {
cursor: pointer;
display: flex;
gap: .5rem;
justify-content: space-between;
}
[type="checkbox"] {
accent-color: currentColor;
scale: 2;
transform-origin: center right;
}
}