summaryrefslogtreecommitdiff
path: root/addons/website/static/src/scss/website.scss
diff options
context:
space:
mode:
authorCocographique <nmi@odoo.com>2020-06-29 07:35:33 +0000
committerXavier-Do <xdo@odoo.com>2020-08-27 17:07:34 +0000
commitb30e47d81c1f71a66b1b6aa6846b52e080c25643 (patch)
treeb92d5862cbb302e62aa99e98c22efd587dea7a8d /addons/website/static/src/scss/website.scss
parentd3d5983e0a76eb6500e0d3f78f128879b50390e0 (diff)
[IMP] website, *: add 'sidebar' 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/src/scss/website.scss')
-rw-r--r--addons/website/static/src/scss/website.scss56
1 files changed, 56 insertions, 0 deletions
diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss
index 90a090df4f6..b818c72abd8 100644
--- a/addons/website/static/src/scss/website.scss
+++ b/addons/website/static/src/scss/website.scss
@@ -931,6 +931,62 @@ header {
}
}
+@if o-website-value('header-template') == 'sidebar' {
+ @include media-breakpoint-up(lg) {
+ #wrapwrap {
+ // Hack: padding is used by layout option (boxed, etc) so use
+ // border here to be able to combine the effect.
+ @if $-hamburger-right {
+ border-right: o-website-value('sidebar-width') solid transparent;
+ } @else {
+ border-left: o-website-value('sidebar-width') solid transparent;
+ }
+
+ > header {
+ @if $-hamburger-right {
+ @include o-position-absolute(0, 0, 0, auto);
+ } @else {
+ @include o-position-absolute(0, auto, 0, 0);
+ }
+ position: fixed;
+ z-index: $zindex-fixed;
+ display: flex;
+ width: o-website-value('sidebar-width');
+ transform: none !important;
+
+ .navbar {
+ width: 100%;
+ align-items: start;
+ padding: $spacer;
+
+ .navbar-brand {
+ max-width: 100%;
+ padding: 0 0 $spacer 0;
+ }
+ #top_menu_container {
+ flex-direction: column;
+ align-items: start;
+ padding: 0;
+ }
+ .navbar-nav {
+ flex-direction: column;
+ }
+ .nav-link,
+ .dropdown-item {
+ white-space: initial;
+ }
+ .dropdown-menu {
+ position: relative;
+ }
+ }
+ }
+ }
+ body.o_connected_user #wrapwrap > header {
+ top: $o-navbar-height;
+ }
+ }
+}
+
// Mega menu
.o_mega_menu {
width: 100%;