Skip to content

Commit

Permalink
fix: toc
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Jan 4, 2024
1 parent ccb3727 commit c915ca2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions docs/theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@
</script>

<div id="content" class="content">
<main>
<main class="flex-container">
<div >
{{{ content }}}
</div>
<div class="sidetoc">
<nav class="pagetoc"></nav>
</div>
<div>
{{{ content }}}
</div>
</main>

<nav class="nav-wrapper" aria-label="Page navigation">
Expand Down
17 changes: 9 additions & 8 deletions docs/theme/pagetoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,27 @@ a[class^="pagetoc-H"]:only-child {
display: none;
}

main {
display: flex;
justify-content: left;
}

.nav-chapters {
margin-left: 15px;
min-width: 50px;
}

@media only screen and (max-width:1511px) {
@media only screen and (max-width:1499px) {
.sidetoc {
display: none;
}
}

@media only screen and (min-width:1512px) {
main {
position: relative;
}
@media only screen and (min-width:1500px) {
.sidetoc {
margin-left: auto;
margin-top: 20px;
margin-left: 10px;
margin-right: auto;
left: calc(100% + (var(--content-max-width))/4 - 140px);
position: absolute;
}
.pagetoc {
position: fixed;
Expand Down

0 comments on commit c915ca2

Please sign in to comment.