Skip to content

Commit

Permalink
Fixes #47 removes position:fixed and top offset
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkshire-pudding authored Sep 14, 2022
1 parent 21557f3 commit a13cc06
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion css/tocbot-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
height: 2rem;
}

@media (max-width: 48em) {
.js-toc-block.is-position-fixed {
position: relative !important;
top: unset;
}
}
@media (min-width: 48em) {
.js-toc-block.is-position-fixed {
max-width: 150px;
Expand All @@ -28,4 +34,4 @@
.js-toc-block.is-position-fixed {
max-width: 259px;
}
}
}

0 comments on commit a13cc06

Please sign in to comment.