-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresize.css
62 lines (52 loc) · 803 Bytes
/
resize.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
div {
position: relative;
min-width: 50px;
min-height: 50px;
margin: 10px;
background: lightblue;
border: 1px solid #ccc;
}
.resize-border {
position: absolute;
background: transparent;
z-index: 1000;
padding: 0;
margin: 0;
min-width: 0;
min-height: 0;
border: none;
background: transparent !important;
}
.resize-border.top,
.resize-border.bottom {
height: 10px;
left: 0;
right: 0;
cursor: ns-resize;
}
.resize-border.top {
top: -5px;
}
.resize-border.bottom {
bottom: -5px;
}
.resize-border.left,
.resize-border.right {
width: 10px;
top: 0;
bottom: 0;
cursor: ew-resize;
}
.resize-border.left {
left: -5px;
}
.resize-border.right {
right: -5px;
}
div:hover {
outline: 2px dashed #666;
}
.rsize{
display: flex;
flex-direction: row;
}