From d7866f1536a942964ca7faa23c217668039b8da7 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 30 Sep 2021 10:12:36 +0000 Subject: [PATCH] [FIX] website: fix non-full layouts combined with footer scroll effect Since [1], a footer effect option has been introduced which allows to have the content hovering the footer to then reveal it when reaching the bottom of the page (instead of having the footer to scroll like the rest of the content). To achieve that, the body color was forced on the snippet container (the `
`) so that the transparent snippet still appear with a background color for the time they go over the footer. That background color should however not have been forced in non-full layouts as another is already forced in that case. In those non-full layout, the "full" body background (= background of color combination 1) is applied on the snippet container but the "body" color is another color which is customizable by the user too. [1]: https://github.com/odoo/odoo/commit/5879e40445f0176d545b4a50f7f7ec33b2e171c8 Related to task-2590182 closes odoo/odoo#77531 X-original-commit: b0f03cb1d628d29b8a67fc954dc40877dfd1783e Signed-off-by: Quentin Smetz (qsm) --- addons/website/static/src/scss/website.scss | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index 12853c7020d..73a5ff9a5ae 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -1270,7 +1270,12 @@ header { @include media-breakpoint-up(lg) { #wrapwrap.o_footer_effect_enable { > main { - background-color: $body-bg; + @if o-website-value('layout') == 'full' { + // Ensure a transparent snippet at the end of the content + // still appears with the same background when hovering the + // footer during the scroll effect. + background-color: $body-bg; + } @if o-website-value('footer-effect') == 'slideout_shadow' { box-shadow: $box-shadow; }