Skip to content

Commit

Permalink
Fix for 768px by @olafgrabienski
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkshire-pudding authored Sep 15, 2022
1 parent a13cc06 commit 7b9f1f1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions css/tocbot-style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.js-toc-block {
position: relative;
}
.js-toc-block.is-position-fixed {
top: 80px;
position: relative !important;
}
.toc-list-item {
list-style-type: none;
Expand All @@ -14,14 +11,10 @@
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 {
position: fixed !important;
top: 80px;
max-width: 150px;
}
}
Expand Down

0 comments on commit 7b9f1f1

Please sign in to comment.