-
Notifications
You must be signed in to change notification settings - Fork 321
Expand file tree
/
Copy pathhandle.element.css
More file actions
61 lines (50 loc) · 1.01 KB
/
handle.element.css
File metadata and controls
61 lines (50 loc) · 1.01 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
@import "../_variables.css";
:host {
display: grid;
grid-area: 1 / -1;
place-self: var(--align-self, center) var(--justify-self, center);
transform: translate(var(--translate-x, 0), var(--translate-y, 0));
}
:host([hidden]) {
display: none;
}
:host > button {
pointer-events: auto;
background-color: white;
border: 1px solid var(--neon-pink);
padding: 0;
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
position: relative;
cursor: var(--cursor);
/* increase tap target size */
&::before {
content: '';
position: absolute;
inset: -0.5rem;
}
}
:host {
translate: -50% -50%;
}
:host([placement^="top"]),
:host([placement^="bottom"]) {
--cursor: ns-resize;
}
:host([placement$="start"]),
:host([placement$="end"]) {
--cursor: ew-resize;
}
:host([placement="top-start"]) {
--cursor: nw-resize;
}
:host([placement="top-end"]) {
--cursor: ne-resize;
}
:host([placement="bottom-start"]) {
--cursor: sw-resize;
}
:host([placement="bottom-end"]) {
--cursor: se-resize;
}