summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstd-odoo <std@odoo.com>2020-09-23 06:53:38 +0000
committerstd-odoo <std@odoo.com>2020-09-23 07:03:59 +0000
commit8d35540df6d21af6fe716f73aefa37bfb66c7ac2 (patch)
treee3b543eec02970c320b1045117923e289c9f934b
parentb39f39b598d3a930034f9981712cf5ec41ad301c (diff)
[FIX] website_slides: hide the website default header in fullscreen
Bug === You can enter in a fullscreen mode in the frontend, of the slide channel. In this view, the default website header should not be visible. To do that, we play with z-index, but since 0f2cab4aebcc33ca9e278c9395fed2cc8934ed38 , the z-index of the website header has been changed without changing the z-index of the fullscreen view. Task-2345016 closes odoo/odoo#58284 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
-rw-r--r--addons/website/static/src/scss/website.scss4
-rw-r--r--addons/website_slides/static/src/scss/slides_slide_fullscreen.scss2
2 files changed, 4 insertions, 2 deletions
diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss
index b1bc9e27d1e..629f2b67573 100644
--- a/addons/website/static/src/scss/website.scss
+++ b/addons/website/static/src/scss/website.scss
@@ -794,10 +794,12 @@ $-hamburger-left: o-website-value('hamburger-position') == 'left';
$-hamburger-center: o-website-value('hamburger-position') == 'center';
$-hamburger-right: o-website-value('hamburger-position') == 'right';
+$zindex-website-header: $zindex-modal - 20;
+
header {
&#top {
// We need this z-index for the shadow option of the header
- z-index: $zindex-modal - 20;
+ z-index: $zindex-website-header;
}
&:not(.o_header_no_transition) {
#top_menu_container {
diff --git a/addons/website_slides/static/src/scss/slides_slide_fullscreen.scss b/addons/website_slides/static/src/scss/slides_slide_fullscreen.scss
index 059a0669641..c00bc1201dc 100644
--- a/addons/website_slides/static/src/scss/slides_slide_fullscreen.scss
+++ b/addons/website_slides/static/src/scss/slides_slide_fullscreen.scss
@@ -1,7 +1,7 @@
.o_wslides_fs_main {
@include o-position-absolute(0,0,0,0);
- z-index: $zindex-dropdown;
+ z-index: $zindex-website-header + 1;
background-image: linear-gradient(120deg, $o-wslides-color-dark2, $o-wslides-color-dark3);
.o_wslides_slide_fs_header {