Skip to content

Commit 8eb01b2

Browse files
committed
Add inter-panel gutter hover color
1 parent 5d90420 commit 8eb01b2

2 files changed

Lines changed: 32 additions & 24 deletions

File tree

frontend/src/components/window/MainWindow.svelte

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,6 @@
5454
5555
.workspace {
5656
position: relative;
57-
flex: 1 1 100%;
58-
59-
.workspace-grid-subdivision {
60-
position: relative;
61-
flex: 1 1 0;
62-
min-height: 28px;
63-
64-
&.folded {
65-
flex-grow: 0;
66-
height: 0;
67-
}
68-
}
69-
70-
.workspace-grid-resize-gutter {
71-
flex: 0 0 4px;
72-
73-
&.layout-row {
74-
cursor: ns-resize;
75-
}
76-
77-
&.layout-col {
78-
cursor: ew-resize;
79-
}
80-
}
8157
}
8258
8359
// Needed for the viewport hole punch on desktop

frontend/src/components/window/PanelSubdivision.svelte

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,35 @@
210210
{/if}
211211
{/each}
212212
{/if}
213+
214+
<style lang="scss">
215+
.workspace-grid-subdivision {
216+
position: relative;
217+
flex: 1 1 0;
218+
min-height: 28px;
219+
220+
&.folded {
221+
flex-grow: 0;
222+
height: 0;
223+
}
224+
}
225+
226+
.workspace-grid-resize-gutter {
227+
flex: 0 0 4px;
228+
border-radius: 2px;
229+
transition: background 0.2s 0s;
230+
231+
&.layout-row {
232+
cursor: ns-resize;
233+
}
234+
235+
&.layout-col {
236+
cursor: ew-resize;
237+
}
238+
239+
&:hover {
240+
background: var(--color-5-dullgray);
241+
transition: background 0.2s 0.1s;
242+
}
243+
}
244+
</style>

0 commit comments

Comments
 (0)