From fa267e5cfcbe1375eaaa5f560d740feaa394706f Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Wed, 26 May 2021 16:48:05 +0200 Subject: [PATCH] [FIX] odoo_theme: design fixes - change button color (in line with odoo.com) - adapt margin above h2 - change gray variable on footer (to use the same as everywhere else) - fix grey background in nav - fix opacity on icon when active in nav - add icons on mobile homepage - fix missing homepage separator in mobile - fix nav top padding on mobile (hidden by searchbar) - adjust nav's active links styles - adjust margin on version switcher - hide toctree-wrapper when show-content is in meta - fix highlighted-link on tablet screen - style toctree-wrapper (a lil bit) - hide local toc while page is loading - SCSS linting --- extensions/odoo_theme/layout.html | 7 +- .../odoo_theme/layout_templates/homepage.html | 10 +- .../layout_templates/version_switcher.html | 2 +- extensions/odoo_theme/static/js/page_toc.js | 3 + .../odoo_theme/static/scss/_variables.scss | 4 +- extensions/odoo_theme/static/style.scss | 165 +++++++++++------- 6 files changed, 122 insertions(+), 69 deletions(-) diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html index 0c1a31f44..c0ccb1a51 100644 --- a/extensions/odoo_theme/layout.html +++ b/extensions/odoo_theme/layout.html @@ -79,6 +79,10 @@ {%- set main_classes = main_classes + ['o_index'] %} {%- endif %} + {%- if 'show-content' in meta %} {# The page is an accessible toctree #} + {%- set main_classes = main_classes + ['o_hide_toc'] %} + {%- endif %} + {%- if 'code-column' in meta %} {# The page contains a 'memento' (dynamic side block) #} {%- set main_classes = main_classes + ['o_has_code_column'] %} {%- endif %} @@ -110,7 +114,8 @@ {%- endif %} {%- if 'hide-page-toc' not in meta %} -