-
Notifications
You must be signed in to change notification settings - Fork 320
Expand file tree
/
Copy pathrotation.element.css
More file actions
56 lines (49 loc) · 922 Bytes
/
rotation.element.css
File metadata and controls
56 lines (49 loc) · 922 Bytes
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
@import "../_variables.css";
:host {
position: var(--position);
top: var(--top);
left: var(--left);
pointer-events: none;
z-index: var(--layer-3);
}
:host .rotation-line {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
:host .rotation-line.active {
display: block;
}
:host .rotation-line line {
stroke: var(--neon-pink);
stroke-width: 1;
}
:host .rotation-handle {
position: absolute;
width: 24px;
height: 24px;
top: -30px;
left: calc(var(--width) / 2 - 12px);
cursor: grab;
pointer-events: all;
background: var(--neon-pink);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
user-select: none;
-webkit-user-select: none;
}
:host .rotation-handle:active {
cursor: grabbing;
}
:host .rotation-icon {
width: 16px;
height: 16px;
fill: white;
pointer-events: none;
}