0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-13 15:31:26 -05:00

🐛 Fix z-index of workspace context menu

This commit is contained in:
Eva Marco 2024-03-11 10:16:56 +01:00
parent fb58d7a4cc
commit 9940dabfff
23 changed files with 23 additions and 71 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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,

View file

@ -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";

View file

@ -8,7 +8,7 @@
position: relative;
visibility: hidden;
opacity: 0;
z-index: 100;
z-index: 3;
}
.context-menu.is-open {

View file

@ -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;

View file

@ -12,7 +12,7 @@
display: flex;
align-items: center;
padding: 32px;
z-index: 1000;
z-index: 40;
cursor: pointer;

View file

@ -9,7 +9,7 @@
position: fixed;
top: 0;
width: 100%;
z-index: 999;
z-index: 40;
}
// full with loader CSS

View file

@ -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;
}
}
}
}
}
}

View file

@ -10,7 +10,7 @@
position: relative;
visibility: hidden;
opacity: $op-0;
z-index: $z-index-3;
z-index: $z-index-4;
&.is-open {
position: relative;

View file

@ -78,7 +78,7 @@
min-height: $s-200;
position: absolute;
width: 100%;
z-index: $z-index-3;
z-index: $z-index-4;
hr {
margin: 0;

View file

@ -42,7 +42,7 @@
border-top-right-radius: $br-10;
margin-right: $s-32;
position: relative;
z-index: 1;
z-index: $z-index-1;
background-color: $db-quaternary;
}

View file

@ -19,7 +19,7 @@
height: 100%;
width: $s-24;
padding: 0;
z-index: $z-index-4;
z-index: $z-index-5;
svg {
@extend .button-icon;
stroke: var(--icon-foreground);

View file

@ -13,7 +13,7 @@
max-width: $s-480;
padding: $s-4;
margin: 0 0 $s-4 0;
z-index: $z-index-3;
z-index: $z-index-4;
border-radius: $br-10;
background-color: var(--context-menu-background-color);

View file

@ -19,7 +19,7 @@
border-radius: $br-8;
border: $s-2 solid var(--panel-border-color);
background-color: var(--menu-background-color);
z-index: $z-index-3;
z-index: $z-index-4;
}
.separator {

View file

@ -43,7 +43,7 @@
.resize-area {
grid-area: resize;
height: $s-8;
z-index: $z-index-3;
z-index: $z-index-4;
width: calc(100% - $s-8);
border-radius: $br-circle;
cursor: ns-resize;

View file

@ -42,7 +42,7 @@
padding: $s-8;
margin: calc(-1 * $s-2) calc(-1 * $s-4) 0 0;
background-color: var(--menu-background-color);
z-index: $z-index-3;
z-index: $z-index-4;
.active-users-list {
gap: $s-4;
.users-num,

View file

@ -47,7 +47,7 @@ $width-settings-bar-max: $s-500;
position: absolute;
top: 0;
left: unset;
z-index: $z-index-3;
z-index: $z-index-4;
width: $s-8;
cursor: ew-resize;
height: 100%;

View file

@ -249,7 +249,7 @@
:global(.sticky) {
position: sticky;
top: $s-0;
z-index: $z-index-3;
z-index: $z-index-4;
}
.tab-indentation {

View file

@ -224,7 +224,7 @@
margin: 0 0 $s-40 0;
margin-top: $s-4;
border-radius: $br-8;
z-index: $z-index-3;
z-index: $z-index-4;
overflow-y: auto;
background-color: var(--menu-background-color);
.option-btn {

View file

@ -351,7 +351,7 @@
right: 0;
height: 100%;
width: 100%;
z-index: $z-index-3;
z-index: $z-index-4;
}
.show-recent {

View file

@ -13,7 +13,7 @@
max-width: $s-480;
padding: $s-4;
margin: 0 0 $s-4 0;
z-index: $z-index-3;
z-index: $z-index-4;
border-radius: $br-10;
background-color: var(--context-menu-background-color);

View file

@ -17,7 +17,7 @@
padding: $s-8 $s-16;
border-radius: $s-8;
border: $s-2 solid var(--panel-border-color);
z-index: $z-index-10;
z-index: $z-index-3;
background-color: var(--color-background-primary);
transition:
top 0.3s,