[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.
This commit is contained in:
Elisabeth Dickinson 2021-05-11 10:28:13 +02:00 committed by GitHub
parent ac99ad7abd
commit 9204658456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);