Skip to content

Commit

Permalink
Scroll to Sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
0vlax0 authored Apr 5, 2024
1 parent 9f45dd8 commit 5abdc10
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions _sass/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@
-webkit-transform: translate3d(0, 0 , 0);
transform: translate3d(0, 0 , 0);

@include clearfix();
margin-bottom: 1em;

@include clearfix();
margin-bottom: 1em;

@media screen and (min-width: $sidebar-min-width) {
height: 100vh;
overflow-y: auto; // Add scrollbar if the sidebar is too long
position: fixed;
padding-top: $masthead-height;
}
@include breakpoint($large) {
@include span(2 of 12);
@include span(2 of 12);
opacity: 1;
-webkit-transition: opacity 0.2s ease-in-out;
transition: opacity 0.2s ease-in-out;
Expand Down

0 comments on commit 5abdc10

Please sign in to comment.