diff --git a/addons/website/static/src/scss/website.edit_mode.scss b/addons/website/static/src/scss/website.edit_mode.scss index 8967dc911db..7cb42d99603 100644 --- a/addons/website/static/src/scss/website.edit_mode.scss +++ b/addons/website/static/src/scss/website.edit_mode.scss @@ -185,13 +185,6 @@ body.editor_enable.editor_has_snippets { } } } - @if o-website-value('hamburger-type') == 'off-canvas' { - #top_menu_collapse { - &.collapsing, &.show { - right: $o-we-sidebar-width; - } - } - } } //s_dynamic_snippet diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index 86354dc1b3a..1cb8c0f70af 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -868,9 +868,13 @@ header { #top_menu_collapse { &.collapsing, &.show { + // Note: position relatively to the header instead of the viewport + // because fixed position cannot work inside an element whose CSS + // transform is different to none, which the header element is + // because of header effects. @include o-position-absolute(0, 0, 0, 0); - position: fixed; z-index: $zindex-sticky; + height: 100vh; transition: none; transform: none; @@ -955,9 +959,9 @@ header { } } - .o_connected_user:not(.editor_has_snippets) header:not(.o_header_is_scrolled) &, - .o_connected_user:not(.editor_has_snippets) header.o_header_affixed & { - padding-top: $o-navbar-height !important; + .o_connected_user:not(.editor_has_snippets) header & { + top: -$o-navbar-height; + padding-top: $o-navbar-height; } } &.collapsing #top_menu { diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index 3f717fc5d05..fbb5f1ca9ed 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -1226,7 +1226,7 @@
-