Skip to content

Commit

Permalink
fix mobile TOC and remove extra scrollbar (#50)
Browse files Browse the repository at this point in the history
* fix mobile TOC and remove extra scrollbar

* remove extra space when TOC is collapsed
* remove extra scrollbar from content area

* display TOC as static when it needs to be
  • Loading branch information
cdw9 authored Nov 26, 2024
1 parent 3487d92 commit 5c6f1f5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions boostlook.css
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ p, h1, h2, h3, h4, h5, h6 {

.boostlook #content {
padding-top: 1.25rem;
overflow-y: auto;
}

.boostlook #footer {
Expand Down Expand Up @@ -552,9 +551,13 @@ p, h1, h2, h3, h4, h5, h6 {
overflow-y: auto;
}

.boostlook #toc.toc2 {
.boostlook #toc.toc2,
#boost-legacy-docs-wrapper:not(:has(article.doc)) #toc.toc2.is-active {
position: static;
}
#boost-legacy-docs-wrapper:not(:has(article.doc)) #toc.toc2 {
position: fixed;
}

.boostlook #toc.toc2 > ul {
padding-bottom: 2rem;
Expand Down Expand Up @@ -764,6 +767,10 @@ p, h1, h2, h3, h4, h5, h6 {
position: fixed;
}

.boostlook #toc.toc2.nav-container.is-active {
position: static;
}

.boostlook #header .nav-container.is-active {
padding: 1rem;
}
Expand Down

0 comments on commit 5c6f1f5

Please sign in to comment.