Skip to content

Commit

Permalink
Make sidebar sticky-ish
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcenteno committed Sep 11, 2024
1 parent 022c40c commit c1effd8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assets/scss/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
overflow-y: auto;
padding-bottom: 20px;
padding-left: 20px;

@media only screen and (min-width: 992px) {
height: calc(100vh - var(--page-header-height) - 60px);
position: sticky;
top: 130px;
}
}

.sidebar ul {
Expand All @@ -83,7 +89,7 @@
margin-top: 20px;

@media only screen and (min-width: 992px) {
margin-top: 50px;
margin-top: 0;
}
}

Expand Down

0 comments on commit c1effd8

Please sign in to comment.