From 3ee4bc4636fb061ec62a92df3883af8fd188ac8e Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Fri, 6 Nov 2020 18:06:13 +0000 Subject: [PATCH] [FIX] website: show mega menu over /my sidebar Note that in 14.0 the same fix was already applied with [1]. This commit only clarifies the line's related comment and use the right zindex variable (even though the value is the same). [1]: https://github.com/odoo/odoo/commit/0f2cab4aebcc33ca9e278c9395fed2cc8934ed38 closes odoo/odoo#61889 X-original-commit: 1bfc5c83ae208430cfd6e3eda72dd53aa8d3a613 Signed-off-by: Quentin Smetz (qsm) Co-authored-by: qsm-odoo --- addons/website/static/src/scss/website.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index 723037ca69d..92db8741467 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -807,11 +807,13 @@ $-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; +$zindex-website-header: $zindex-fixed !default; header { &#top { - // We need this z-index for the shadow option of the header + // We need this z-index for the shadow option of the header but also + // to create a stacking context so that header dropdowns appear below + // and above the same elements as the header. z-index: $zindex-website-header; } &:not(.o_header_no_transition) {