forked from bptlab/fCM-design-support
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dividers.less
69 lines (58 loc) · 1.09 KB
/
dividers.less
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
.left {
width: 70%;
height: 100%;
}
.right {
width: 30%;
height: 100%;
}
.right {
left: 0%;
}
.top, .bottom {
width: 100%;
height: 50%;
}
.bottom {
top: 0%;
}
.divider {
float: none;
overflow: hidden;
background-color: transparent;
position: absolute;
z-index: 100;
--thickness: 20px;
}
.divider:after {
content: '';
display: block;
--border-width: 6px;
--offset: calc((var(--thickness) - var(--border-width)) / 2);
--border-style: var(--border-width) dotted rgba(150, 150, 150, 1);
}
.divider.dragged {
--thickness: 20px;
background-color: rgba(150, 150, 150, 0.5);
}
.divider.vertical {
width: var(--thickness);
height: 100%;
left: calc(70% - 10px);
cursor: w-resize;
}
.divider.vertical:after {
margin-left: var(--offset);
border-left: var(--border-style);
height: 100%;
}
.divider.horizontal {
height: var(--thickness);
width: 100%;
top: calc(50% - 10px);
cursor: n-resize;
}
.divider.horizontal:after {
margin-top: var(--offset);
border-bottom: var(--border-style);
}