-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresizable.css
executable file
·78 lines (65 loc) · 1.07 KB
/
resizable.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
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
.resizable {
outline: 1px solid transparent;
/* prevent flickering */
backface-visibility: hidden;
transform: translate3d(0, 0, 0);
word-wrap: break-word;
}
.resizable.active {
outline: 1px dashed blue;
}
.resizable > :not(.resize-handle) {
cursor: default;
}
.resize-handle {
background-color: #fff;
border: 1px solid blue;
box-sizing: border-box;
border-radius: 1px;
display: none;
height: 10px;
position: absolute;
width: 10px;
z-index: 1000;
}
.resizable.active .resize-handle {
cursor: pointer;
display: block;
}
.resize-handle-rotate {
border-radius: 50%;
left: calc(50% - 5px);
top: -25px;
}
.resize-handle-n {
left: calc(50% - 5px);
top: -5px;
}
.resize-handle-ne {
right: -5px;
top: -5px;
}
.resize-handle-e {
right: -5px;
top: calc(50% - 5px);
}
.resize-handle-se {
bottom: -5px;
right: -5px;
}
.resize-handle-s {
bottom: -5px;
left: calc(50% - 5px);
}
.resize-handle-sw {
bottom: -5px;
left: -5px;
}
.resize-handle-w {
left: -5px;
top: calc(50% - 5px);
}
.resize-handle-nw {
left: -5px;
top: -5px;
}