From c5a28e235144e442ce2e894fc73dbc3cc17a47ee Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Wed, 24 Mar 2021 09:34:28 +0100 Subject: [PATCH] [IMP] change ".doc-toc" to ".o_fullwidth_page" --- extensions/odoo_theme/layout.html | 4 +--- extensions/odoo_theme/static/style.scss | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/extensions/odoo_theme/layout.html b/extensions/odoo_theme/layout.html index 0071226d0..5dd06453d 100644 --- a/extensions/odoo_theme/layout.html +++ b/extensions/odoo_theme/layout.html @@ -84,9 +84,7 @@ {% endif %} {% if 'has_only_toc' in meta or 'hide_page_toc' in meta %} - {# The page only contains a toctree or the page toc is hidden #} - {# TODO EDI rename doc-toc class to sthg more meaningful explaining the result (body taking full page) #} - {% set main_classes = main_classes + ['doc-toc'] %} {# Increase body width, taking the place of the page toc #} + {% set main_classes = main_classes + ['o_fullwidth_page'] %} {% endif %}
diff --git a/extensions/odoo_theme/static/style.scss b/extensions/odoo_theme/static/style.scss index 121f4e244..60b44a811 100644 --- a/extensions/odoo_theme/static/style.scss +++ b/extensions/odoo_theme/static/style.scss @@ -380,7 +380,7 @@ header.o_main_header{ // "in between" pages (Applications / Contributing) - &.doc-toc { + &.o_fullwidth_page { .toctree-wrapper { margin-top: 1.5rem; > ul {