Skip to content

Commit

Permalink
Closes academicpages#2029 with update to sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzupkoii authored and dorukaks committed Nov 24, 2024
1 parent 91c8113 commit 72e6efc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 2 additions & 5 deletions _sass/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
@include clearfix();
margin-bottom: 1em;



@media screen and (min-width: 925px) {
height: 100vh;
overflow-y: auto; // Scroll sidebar content
@media screen and (min-width: $sidebar-min-width) {
position: fixed;
padding-top: $masthead-height;
}
Expand All @@ -37,6 +33,7 @@
}

@include breakpoint($x-large) {
max-width: $sidebar-link-max-width;
padding-right: 0;
}

Expand Down
6 changes: 6 additions & 0 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ $type-size-8 : 0.625em; // ~10px
/* masthead properties */
$masthead-height : 50px;

/* Sidebar properties */
$sidebar-min-width : 1024px;
$sidebar-link-max-width : 250px;



/*
Colors
========================================================================== */
Expand Down

0 comments on commit 72e6efc

Please sign in to comment.