Skip to content

Commit 6495325

Browse files
authored
Merge branch 'master' into max-galindo
2 parents 01835ab + 2765f55 commit 6495325

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

_sass/_sidebar.scss

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,12 @@
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
}
@@ -37,6 +32,7 @@
3732
}
3833

3934
@include breakpoint($x-large) {
35+
max-width: $sidebar-link-max-width;
4036
padding-right: 0;
4137
}
4238

_sass/_variables.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
========================================================================== */

0 commit comments

Comments
 (0)