forked from sdllc/Basic-Excel-R-Toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplitter_window.less
129 lines (101 loc) · 2.41 KB
/
splitter_window.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/**
* Copyright (c) 2017-2018 Structured Data, LLC
*
* This file is part of BERT.
*
* BERT is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* BERT is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with BERT. If not, see <http://www.gnu.org/licenses/>.
*/
@import "./common.less";
/** defaults to horizontal orientation (left and right) */
.splitter-parent {
display: flex;
flex-direction: row;
.splitter-child {
&:first-child {
order: 1;
}
&:nth-child(2) {
order: 3;
}
}
.splitter-splitter {
width: 1px;
background: #bbb;
z-index: 200; // we're now layering shells, so this needs to be > 100
/*
width: 13px;
background: #eee;
//border-left: 1px solid #ddd;
//border-right: 1px solid #ddd;
*/
height: auto;
cursor: ew-resize;
order: 2;
position: relative;
overflow: visible;
&:after {
position: absolute;
width: 13px;
bottom: 0;
top: 0;
left: -6px;
//background: rgba(0,0,0,.1);
//left: 0px;
content: ' ';
overflow: hidden;
}
}
}
/** vertical orientation (top and bottom) */
.splitter-parent.splitter-orientation-vertical {
flex-direction: column;
.splitter-splitter {
width: auto;
height: 1px;
cursor: ns-resize;
&:after {
height: 13px;
right: 0;
width: 100%;
left: 0;
top: -6px;
}
}
}
/** drag overlay. only need one for any number of splitters. */
#splitter-drag-overlay {
z-index: 9999;
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
cursor: ew-resize;
justify-content: center;
align-items: center;
display: none;
&.visible { display: flex; }
&.splitter-orientation-vertical {
cursor: ns-resize;
}
/** indicator */
div {
position: relative;
border-radius: 2px;
color: #666;
padding: 4px 10px;
background: rgba( 255, 255, 255, .85);
box-shadow: @terminal-box-shadow;
}
}