Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#42316] Administration page for changing the global work schedule - Weekends only

Dombi Attilabf3b49f761c3
diff --git a/frontend/src/app/spot/styles/sass/variables/zindex.sass b/frontend/src/app/spot/styles/sass/variables/zindex.sass
index 236c6e9911b..f9d8bf9548f 100644
--- a/frontend/src/app/spot/styles/sass/variables/zindex.sass
+++ b/frontend/src/app/spot/styles/sass/variables/zindex.sass
@@ -1,6 +1,6 @@
@use "sass:map"
-$spot-z-indexes: ("toast": 300, "tooltip": 500, "header": 800, "drop-modal": 1000)
+$spot-z-indexes: ("toast": 300, "tooltip": 500, "main-menu": 600, "header": 800, "drop-modal": 1000)
@mixin spot-z-index($type, $addition: 0)
z-index: map.get($spot-z-indexes, $type) + $addition
diff --git a/frontend/src/global_styles/content/_toast.sass b/frontend/src/global_styles/content/_toast.sass
index e699342acbb..57f4c6578de 100644
--- a/frontend/src/global_styles/content/_toast.sass
+++ b/frontend/src/global_styles/content/_toast.sass
@@ -295,6 +295,8 @@ $nm-upload-box-padding: rem-calc(15) rem-calc(25)
// Use same styles for flash messages
.flash, #errorExplanation
+ // Always above the toast
+ @include spot-z-index("toast", 1)
border-radius: $nm-border-radius
border-style: solid
border-width: rem-calc(1)
@@ -304,7 +306,6 @@ $nm-upload-box-padding: rem-calc(15) rem-calc(25)
box-shadow: rem-calc(1px 2px 3px) rgba(0, 0, 0, 0.2)
margin-bottom: 0.1875rem
margin-top: 0.5rem
- z-index: 15
&.ng-leave
@include animation(0.5s fade-out)
diff --git a/frontend/src/global_styles/layout/_main_menu_mobile.sass b/frontend/src/global_styles/layout/_main_menu_mobile.sass
index a8baecf324e..0bc7f4eaee9 100644
--- a/frontend/src/global_styles/layout/_main_menu_mobile.sass
+++ b/frontend/src/global_styles/layout/_main_menu_mobile.sass
@@ -28,14 +28,14 @@
@include breakpoint(680px down)
.main-menu
+ @include spot-z-index("main-menu")
position: fixed
- z-index: 12
border-bottom: 1px solid var(--main-menu-border-color)
border: none
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15)
min-width: 75vw
- #main-menu-toggle
+ #main-menu-toggle
.icon-hamburger
display: none
.icon-close
@@ -44,7 +44,7 @@
.hidden-navigation
.main-menu
display: none
- #main-menu-toggle
+ #main-menu-toggle
.icon-hamburger
display: block
.icon-close
@@ -76,4 +76,4 @@
bottom: 0
right: 0
opacity: .4
- z-index: 11
+ @include spot-z-index("main-menu", -1)