From 435990290a61ca6fdb679e6b076ef9157b89a6ce Mon Sep 17 00:00:00 2001 From: Kimsible Date: Wed, 21 Jul 2021 13:33:14 +0200 Subject: [PATCH] Correct privacymsg z-index to avoid hover dropdown on scroll --- .../shared/information/privacy-concerns.component.scss | 7 +++++++ client/src/sass/bootstrap.scss | 2 +- client/src/sass/include/_variables.scss | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss b/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss index b42be318f..a6479c7ec 100644 --- a/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss +++ b/client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss @@ -25,6 +25,13 @@ } } +// Avoid higher z-index when overlay on touchscreens +:host-context(.menu-open) { + .privacy-concerns { + z-index: z(overlay) - 1; + } +} + // Or if we are in the small view @media screen and (max-width: $small-view) { .privacy-concerns { diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 586f558fe..4f6e08c1b 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss @@ -214,7 +214,7 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; content: ''; display: block; position: fixed; - z-index: z('menu') - 1; + z-index: z(overlay); } } } diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index 396dae0e2..e0a4c7d3f 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss @@ -159,8 +159,8 @@ $variables: ( $zindex: ( miniature : 10, - privacymsg : 20, sub-menu : 12500, + overlay : 12550, menu : 12600, search-typeahead: 12650, popover : 13000, @@ -169,6 +169,7 @@ $zindex: ( modal : 16000, dropdown : 17000, help-popover : 17000, + privacymsg : 17500, header : 17500, notification : 18000, hotkeys : 19000 -- 2.41.0