-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhoriz-split-box.css
48 lines (48 loc) · 978 Bytes
/
horiz-split-box.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
.horiz-split-box {
width: 545px;
height: 345px;
background: #fff;
position: relative;
border: 1px solid #eee;
border-radius: 4px;
}
.horiz-split-box .content {
width: 545px;
}
.horiz-split-box .cover {
top: 0;
left: 0;
width: 35%;
height: 100%;
background: #fff;
position: absolute;
overflow: hidden;
z-index: 2;
}
.horiz-split-box .cover {
background: #fbfbfb;
}
.horiz-split-box .toggle-handle {
top: 0;
right: 65%;
width: 4px;
height: 100%;
z-index: 3;
position: absolute;
background: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.06);
cursor: -webkit-grab;
cursor: grab;
}
.horiz-split-box .toggle-handle-button {
top: 50%;
left: -18px;
width: 40px;
height: 40px;
display: block;
margin-top: -20px;
position: absolute;
border-radius: 50%;
background: #fff;
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.06);
}