mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix z-index of workspace context menu
This commit is contained in:
@@ -1011,7 +1011,7 @@ input[type="range"]:focus::-ms-fill-upper {
|
||||
padding-left: 16px;
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
z-index: 1005;
|
||||
z-index: 40;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -905,7 +905,7 @@
|
||||
margin: 0;
|
||||
margin-top: $s-1;
|
||||
border-radius: $br-8;
|
||||
z-index: $z-index-3;
|
||||
z-index: $z-index-4;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
background-color: var(--menu-background-color);
|
||||
|
||||
@@ -6,8 +6,9 @@
|
||||
|
||||
$z-index-1: 1; // floating elements
|
||||
$z-index-2: 2; // sidebars
|
||||
$z-index-3: 3; // context menu
|
||||
$z-index-4: 4; // modal
|
||||
$z-index-3: 3; // topbar
|
||||
$z-index-4: 4; // context menu
|
||||
$z-index-5: 5; // modal
|
||||
$z-index-10: 10;
|
||||
$z-index-20: 20;
|
||||
$z-index-modal: 30; // When refactor finish we can reduce this number,
|
||||
|
||||
@@ -60,7 +60,6 @@
|
||||
@import "main/partials/project-bar";
|
||||
@import "main/partials/sidebar";
|
||||
@import "main/partials/tab-container";
|
||||
@import "main/partials/tool-bar";
|
||||
@import "main/partials/user-settings";
|
||||
@import "main/partials/workspace";
|
||||
@import "main/partials/color-bullet";
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
position: relative;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
z-index: 100;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.context-menu.is-open {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
background-color: $color-white;
|
||||
border-radius: $br2;
|
||||
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
|
||||
z-index: 12;
|
||||
z-index: 3;
|
||||
|
||||
hr {
|
||||
margin: 0 !important;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 32px;
|
||||
z-index: 1000;
|
||||
z-index: 40;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 999;
|
||||
z-index: 40;
|
||||
}
|
||||
|
||||
// full with loader CSS
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
//
|
||||
// Copyright (c) KALEIDOS INC
|
||||
|
||||
.tool-bar {
|
||||
background-color: $color-gray-40;
|
||||
bottom: 0;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
width: 50px;
|
||||
z-index: 10;
|
||||
|
||||
.tool-bar-inside {
|
||||
padding-top: 70px;
|
||||
|
||||
.main-tools {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
li {
|
||||
cursor: pointer;
|
||||
margin-bottom: $size-5;
|
||||
|
||||
svg {
|
||||
fill: $color-gray-20;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
svg {
|
||||
fill: $color-white;
|
||||
}
|
||||
}
|
||||
|
||||
&.current {
|
||||
svg {
|
||||
fill: $color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user