summaryrefslogtreecommitdiff
path: root/addons/website
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-05-18 12:32:28 +0000
committerqsm-odoo <qsm@odoo.com>2020-07-28 12:20:15 +0000
commit2ebbdef089f05e22ab735b37cff930e89f0efb79 (patch)
tree82cc2477d33eac649c3be3f24a6d4a3d99a04f2e /addons/website
parent7b8035563f52a05b971ca325f78275837dd0ba84 (diff)
[FIX] website: fix standard effect with Logo on top/below
Fix the standard effect with template logo on top/below to avoid an hopping when scrolling. Part of https://github.com/odoo/odoo/pull/51446 task-2229127 X-original-commit: 444b8b8a8d2014d0465a6ff00ce23b2ca1fca66a
Diffstat (limited to 'addons/website')
-rw-r--r--addons/website/static/src/scss/website.scss9
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss
index cab078da035..1e3e98f8fe1 100644
--- a/addons/website/static/src/scss/website.scss
+++ b/addons/website/static/src/scss/website.scss
@@ -670,6 +670,15 @@ $-transition-duration: 200ms;
}
}
}
+ &.o_header_standard.o_header_is_scrolled {
+ @if index(('menu_logo_below', 'logo_menu_below'), o-website-value('header-template')) != null {
+ .navbar-brand {
+ &, img {
+ transition: none;
+ }
+ }
+ }
+ }
}
#oe_main_menu_navbar + #wrapwrap .o_header_affixed {
top: $o-navbar-height;