From 920465845667440bdbb19f1c0af4c5735791b8ff Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Tue, 11 May 2021 10:28:13 +0200 Subject: [PATCH] [FIX] theme: always hide in-page toctrees Toctree pages will soon hold content and thus be reachable. The TOC should never be displayed on those pages. --- extensions/odoo_theme/static/style.scss | 31 +++++++------------------ 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/extensions/odoo_theme/static/style.scss b/extensions/odoo_theme/static/style.scss index 6d1ed86d8..7cc0f58e6 100644 --- a/extensions/odoo_theme/static/style.scss +++ b/extensions/odoo_theme/static/style.scss @@ -402,7 +402,6 @@ header.o_main_header{ } } - p, h5 { color: $gray; } @@ -451,30 +450,9 @@ header.o_main_header{ } } - // "in between" pages (Applications / Contributing) + // pages with full width: Legal &.o_fullwidth_page { - .toctree-wrapper { - display: none; - /* margin-top: 1.5rem; - > ul { - display: flex; - flex-wrap: wrap; - - > li.toctree-l1 { - @include media-breakpoint-up(lg) { - width: 33.3%; - } - padding-bottom: 3rem; - padding-right: 3rem; - } - } - ul { - list-style: none; - padding-left:0; - } */ - } - .toctree-l1 > a { display: block; color: $gray-darker; @@ -485,6 +463,8 @@ header.o_main_header{ } } + // pages with column for code on the right + &.o_has_code_column { article.doc-body { @@ -569,6 +549,11 @@ header.o_main_header{ article.doc-body { position: relative; + // hide ugly toctree on "in between" pages (e.g.: /applications.html, /administration.html, ...) + .toctree-wrapper { + display: none; + } + .o_git_link { @include font-size($font-size-secondary); @include o-position-absolute($top: 0px, $right: 1rem);