diff options
| author | Cocographique <nmi@odoo.com> | 2020-08-12 08:31:16 +0000 |
|---|---|---|
| committer | Xavier-Do <xdo@odoo.com> | 2020-08-27 17:07:34 +0000 |
| commit | c6ad4dfdc0e133bd985054125bcb46e4e3f52cdd (patch) | |
| tree | 9c5e9dcc8081f71e637e71eee8b69ab640e2a977 /addons/website/static | |
| parent | f11353cad6b2e9c14bc583945c328822b871ba10 (diff) | |
[IMP] website, *: add 'boxed' header template
*: website_sale, website_sale_wishlist
Part of https://github.com/odoo/odoo/pull/56427
task-2264627
Co-authored-by: qsm-odoo <qsm@odoo.com>
Diffstat (limited to 'addons/website/static')
| -rw-r--r-- | addons/website/static/src/scss/primary_variables.scss | 1 | ||||
| -rw-r--r-- | addons/website/static/src/scss/website.scss | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/addons/website/static/src/scss/primary_variables.scss b/addons/website/static/src/scss/primary_variables.scss index be6fa5fd575..d7ef22b4da0 100644 --- a/addons/website/static/src/scss/primary_variables.scss +++ b/addons/website/static/src/scss/primary_variables.scss @@ -6,6 +6,7 @@ $o-base-color-palette: map-merge($o-base-color-palette, ( 'body': $o-portal-default-body-bg, 'menu': 1, // o_cc1 + 'header-boxed': '200', 'footer': 5, // o_cc5 'copyright': 'black-15', )); diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss index b818c72abd8..ad1769d0a19 100644 --- a/addons/website/static/src/scss/website.scss +++ b/addons/website/static/src/scss/website.scss @@ -691,6 +691,10 @@ $-transition-duration: 200ms; transition: transform $-transition-duration; } + @if o-website-value('header-template') == 'boxed' { + background: transparent; + } + &.o_header_is_scrolled { .navbar-brand { font-size: $o-theme-navbar-fixed-logo-height / $line-height-base; @@ -985,6 +989,10 @@ header { top: $o-navbar-height; } } +} @else if o-website-value('header-template') == 'boxed' { + #wrapwrap:not(.o_header_overlay) .o_header_boxed_background { + @include o-apply-colors('header-boxed'); + } } // Mega menu |
