Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d74d50d

Browse files
committed
Add blue background to the resizer
1 parent 680de40 commit d74d50d

File tree

2 files changed

+14
-36
lines changed

2 files changed

+14
-36
lines changed

packages/runner-ct/src/app/app.scss

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ main.app-ct {
3131
box-shadow: $box-shadow-closest;
3232
transition: ease-in-out 0.2s;
3333
padding-left: $specs-list-padding;
34-
padding-top: $specs-list-padding;
35-
34+
3635
.specs-list-container {
3736
display: grid;
3837
grid-template-rows: min-content;
3938
grid-gap: $specs-list-padding;
4039
height: calc(100vh - 20px);
40+
padding-top: $specs-list-padding;
4141

4242
nav {
4343
position: absolute;
@@ -135,59 +135,36 @@ main.app-ct {
135135
}
136136

137137

138-
// styles for react-split-pane
138+
// styles for react-split-pane and custom ResizableBox
139139
.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;
148146
z-index: 1;
149147
box-sizing: border-box;
150148
background-clip: padding-box;
151149

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;
158153
}
159-
154+
160155
&.horizontal {
161156
cursor: row-resize;
162157
width: 100%;
163158
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-
}
171159
}
172160

173161
&.vertical {
174162
width: $resize-thickness;
175163
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-
}
183164
}
184165

185166
&.disabled {
186167
display: none;
187-
188-
:hover {
189-
border-color: transparent;
190-
}
191168
}
192169
}
193170

packages/runner-ct/src/lib/ResizableBox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const ResizableBox: React.FC<ResizableBoxProps> = ({
6666
{!disabled && (
6767
<div
6868
data-cy="resizer"
69+
className="Resizer"
6970
style={{ cursor: 'col-resize', flexBasis: 11, width: 11 }}
7071
onMouseDown={initResizing}
7172
/>

0 commit comments

Comments
 (0)