Skip to content

Commit 01835ab

Browse files
committed
Add scroll to sidebar and adjust media query for screen adaptability
1 parent 3f5e63b commit 01835ab

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

_sass/_sidebar.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@
1010
-webkit-transform: translate3d(0, 0 , 0);
1111
transform: translate3d(0, 0 , 0);
1212

13-
height: 100vh;
14-
overflow-y: auto; // Scroll sidebar content
13+
14+
1515

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

19-
@media screen and (min-width: 1024px) {
19+
20+
21+
@media screen and (min-width: 925px) {
22+
height: 100vh;
23+
overflow-y: auto; // Scroll sidebar content
2024
position: fixed;
2125
padding-top: $masthead-height;
2226
}

0 commit comments

Comments
 (0)