@@ -31,13 +31,13 @@ main.app-ct {
31
31
box-shadow : $box-shadow-closest ;
32
32
transition : ease-in-out 0.2s ;
33
33
padding-left : $specs-list-padding ;
34
- padding-top : $specs-list-padding ;
35
-
34
+
36
35
.specs-list-container {
37
36
display : grid ;
38
37
grid-template-rows : min-content ;
39
38
grid-gap : $specs-list-padding ;
40
39
height : calc (100vh - 20px );
40
+ padding-top : $specs-list-padding ;
41
41
42
42
nav {
43
43
position : absolute ;
@@ -135,59 +135,36 @@ main.app-ct {
135
135
}
136
136
137
137
138
- // styles for react-split-pane
138
+ // styles for react-split-pane and custom ResizableBox
139
139
.Resizer {
140
- $resize-border-color : rgba (255 , 255 , 255 , 0 );
141
- $resize-hover-border-color : lighten ($resize-border-color , 0.5 );
142
- $resize-border : 5px solid $resize-border-color ;
143
- $resize-hover-border : 5px solid $resize-hover-border-color ;
144
- $resize-thickness : 11px ;
145
-
146
- background : $resize-border-color ;
147
- opacity : 0.2 ;
140
+ $resize-thickness : 12px ;
141
+ border-left : 5px solid transparent ;
142
+ border-right : 5px solid transparent ;
143
+ margin : -5px ;
144
+
145
+ background : transparent ;
148
146
z-index : 1 ;
149
147
box-sizing : border-box ;
150
148
background-clip : padding-box ;
151
149
152
- :hover {
153
- transition : all 2s ease ;
154
- }
155
-
156
- & .horizontal , & .vertical , {
157
- margin : 0 -5px ;
150
+ & :active {
151
+ background-color : lighten (#4299e1 , 10% );
152
+ transition : background-color .3s ease-in-out ;
158
153
}
159
-
154
+
160
155
& .horizontal {
161
156
cursor : row-resize ;
162
157
width : 100% ;
163
158
height : $resize-thickness ;
164
- border-top : $resize-border ;
165
- border-bottom : $resize-border ;
166
-
167
- :hover {
168
- border-top : $resize-hover-border ;
169
- border-bottom : $resize-hover-border ;
170
- }
171
159
}
172
160
173
161
& .vertical {
174
162
width : $resize-thickness ;
175
163
cursor : col-resize ;
176
- border-left : $resize-border ;
177
- border-right : $resize-border ;
178
-
179
- :hover {
180
- border-left : $resize-hover-border ;
181
- border-right : $resize-hover-border ;
182
- }
183
164
}
184
165
185
166
& .disabled {
186
167
display : none ;
187
-
188
- :hover {
189
- border-color : transparent ;
190
- }
191
168
}
192
169
}
193
170
0 commit comments