File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1010 -webkit-transform : translate3d (0 , 0 , 0 );
1111 transform : translate3d (0 , 0 , 0 );
1212
13-
14-
15-
1613 @include clearfix ();
1714 margin-bottom : 1em ;
1815
19-
20-
21- @media screen and (min-width : 925px ) {
16+ @media screen and (min-width : $sidebar-min-width ) {
2217 height : 100vh ;
23- overflow-y : auto ; // Scroll sidebar content
18+ overflow-y : auto ; // Add scrollbar if the sidebar is too long
2419 position : fixed ;
2520 padding-top : $masthead-height ;
2621 }
3732 }
3833
3934 @include breakpoint ($x-large ) {
35+ max-width : $sidebar-link-max-width ;
4036 padding-right : 0 ;
4137 }
4238
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ $type-size-8 : 0.625em; // ~10px
4545/* masthead properties */
4646$masthead-height : 50px ;
4747
48+ /* Sidebar properties */
49+ $sidebar-min-width : 1024px ;
50+ $sidebar-link-max-width : 250px ;
51+
52+
53+
4854/*
4955 Colors
5056 ========================================================================== */
You can’t perform that action at this time.
0 commit comments