From 03a085dff0232aa8d76a9280ac19d4615c684b33 Mon Sep 17 00:00:00 2001 From: sri-odoo Date: Mon, 18 Feb 2019 12:17:01 +0000 Subject: [PATCH] [IMP] website_slides: improve homepage navbar design Force white background + add the default bootstrap shadow. Do not use

tags to keep the right font-size on mobile. Simplify layout, add a second navabar to handle content supposed to be moved to the right. Commit linked to task ID 1941250 and PR #31279. --- .../static/src/scss/website_slides.scss | 20 ++++++-- .../website_slides_templates_homepage.xml | 49 ++++++++++--------- .../website_slides_templates_homepage.xml | 6 +-- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/addons/website_slides/static/src/scss/website_slides.scss b/addons/website_slides/static/src/scss/website_slides.scss index cf37378ae5a..526dc59a40a 100644 --- a/addons/website_slides/static/src/scss/website_slides.scss +++ b/addons/website_slides/static/src/scss/website_slides.scss @@ -27,10 +27,11 @@ $MAX-Z-INDEX : 2147483647 !default; } .o_wslides_wrap { - .cta-title { - font-size: 1.2em; - } + background-color: desaturate(map-get($grays, "200"), 80%); + .cta-title { + font-size: 1.2em; + } .o_wslides_course_card { .card-body { padding: 0.75em 1em; @@ -123,8 +124,17 @@ $MAX-Z-INDEX : 2147483647 !default; // ************************************************** div .o_wslides_home_nav { - position: relative; - top: -50px; + top: -40px; + + @include media-breakpoint-up(md) { + font-size: 1rem; + + .o_wslides_nav_navbar_right { + margin-left: auto; + padding-left: $spacer; + border-left: 1px solid $border-color; + } + } } div .o_wslides_home_main { diff --git a/addons/website_slides/views/website_slides_templates_homepage.xml b/addons/website_slides/views/website_slides_templates_homepage.xml index d255762c9f5..74b8e4a7558 100644 --- a/addons/website_slides/views/website_slides_templates_homepage.xml +++ b/addons/website_slides/views/website_slides_templates_homepage.xml @@ -19,23 +19,20 @@ -
-
-
+
-