forked from shagstrom/split-pane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplit-pane.css
100 lines (87 loc) · 2.16 KB
/
split-pane.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*!
Split Pane v0.3
Copyright (c) 2012 Simon Hagström
Released under the MIT license
https://raw.github.com/shagstrom/split-pane/master/LICENSE
*/
.split-pane {
position: relative;
height: 100%;
width: 100%;
overflow: hidden;
}
.split-pane.fixed-top > .split-pane-component,
.split-pane.fixed-bottom > .split-pane-component,
.split-pane.horizontal-percent > .split-pane-component {
position: absolute;
left: 0;
width: 100%;
overflow: auto;
top: auto;
bottom: 0;
z-index: 1;
}
.split-pane.fixed-top > .split-pane-component:first-child,
.split-pane.fixed-bottom > .split-pane-component:first-child,
.split-pane.horizontal-percent > .split-pane-component:first-child {
top: 0;
bottom: auto;
}
.split-pane.fixed-top > .split-pane-divider,
.split-pane.fixed-bottom > .split-pane-divider,
.split-pane.horizontal-percent > .split-pane-divider {
position: absolute;
width: 100%;
left: 0;
cursor: ns-resize;
cursor: n-resize\9;
z-index: 2;
}
.split-pane.fixed-left > .split-pane-component,
.split-pane.fixed-right > .split-pane-component,
.split-pane.vertical-percent > .split-pane-component {
position: absolute;
top: 0;
height: 100%;
overflow: auto;
left: auto;
right: 0;
z-index: 1;
}
.split-pane.fixed-left > .split-pane-component:first-child,
.split-pane.fixed-right > .split-pane-component:first-child,
.split-pane.vertical-percent > .split-pane-component:first-child {
left: 0;
right: auto;
}
.split-pane.fixed-left > .split-pane-divider,
.split-pane.fixed-right > .split-pane-divider,
.split-pane.vertical-percent > .split-pane-divider {
position: absolute;
height: 100%;
top: 0;
cursor: ew-resize;
cursor: w-resize\9;
z-index: 2;
}
.split-pane-resize-shim {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10000;
display: none;
}
.split-pane.fixed-left > .split-pane-resize-shim,
.split-pane.fixed-right > .split-pane-resize-shim,
.split-pane.vertical-percent > .split-pane-resize-shim {
cursor: ew-resize;
cursor: w-resize\9;
}
.split-pane.fixed-top > .split-pane-resize-shim,
.split-pane.fixed-bottom > .split-pane-resize-shim,
.split-pane.horizontal-percent > .split-pane-resize-shim {
cursor: ns-resize;
cursor: n-resize\9;
}