[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) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
This commit is contained in:
Romain Derie
2020-11-17 17:58:35 +00:00
committed by qsm-odoo
co-authored by qsm-odoo
parent 1196605882
commit 3ee4bc4636
+4 -2
View File
@@ -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) {