Skip to content

Commit

Permalink
Different set of z-index css vars
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
  • Loading branch information
aleksfront committed Dec 13, 2022
1 parent 27f58e1 commit b96cfc9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions src/renderer/components/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@
--font-weight-bold: 500;
--main-layout-header: 40px;

--z-index-behind: -1;
--z-index-base: 1;
--z-index-base-above: 2;
--z-index-middle: 3;
--z-index-menus: 4;
--z-index-base: 0;
--z-index-above: 1;
--z-index-modals: 2;
--z-index-menus: 3;
--z-index-topmost: 9999;
}

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/dialog/dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
width: 100%;
height: 100%;
padding: $unit * 5;
z-index: var(--z-index-middle);
z-index: var(--z-index-modals);
overscroll-behavior: none; // prevent swiping with touch-pad on MacOSX
overflow: auto;

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/drawer/drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
position: absolute;
background: var(--contentColor);
box-shadow: 0 0 $unit * 2 var(--boxShadow);
z-index: var(--z-index-base-above);
z-index: var(--z-index-above);
height: 100%;

&.left {
Expand Down
1 change: 0 additions & 1 deletion src/renderer/components/layout/main-layout.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
grid-template-rows: [contents] 1fr [footer] auto;
grid-template-columns: [sidebar] var(--sidebar-width) [contents] 1fr;
width: 100%;
z-index: var(--z-index-base);
height: 100%;
}

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/layout/setting-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
display: grid;
color: var(--settingsColor);
position: fixed;
z-index: var(--z-index-middle);
z-index: var(--z-index-modals);
left: 0;
top: 0;
right: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/layout/top-bar/top-bar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

.topBar {
background-color: var(--layoutBackground);
z-index: var(--z-index-base-above);
z-index: var(--z-index-above);
grid-area: topbar;
height: var(--main-layout-header);

Expand Down

0 comments on commit b96cfc9

Please sign in to comment.