Skip to content

Commit c8fb2e2

Browse files
committed
independent scrolling
1 parent 12b3670 commit c8fb2e2

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h1>
4343
</li>
4444
</ul>
4545

46-
<ul>
46+
<ul class="article-list">
4747
{% assign grouped = site.til | group_by: 'category' %}
4848
{% for group in grouped %}
4949
<li>

_sass/_layout.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ body {
6969

7070
.main {
7171
margin-top: $space + $nav-header-height;
72-
72+
height: 100vh;
73+
overflow-y: scroll;
7374
@media (min-width: $mobile-break) {
7475
margin-top: 0;
7576
}
@@ -117,6 +118,14 @@ header {
117118
}
118119
}
119120

121+
.article-list {
122+
overflow-y: scroll;
123+
height: calc(100vh - 195px);
124+
height: -o-calc(100vh - 195px); /* opera */
125+
height: -webkit-calc(100vh - 195px); /* google, safari */
126+
height: -moz-calc(100vh - 195px); /* firefox */
127+
}
128+
120129
.open-nav {
121130
background-image: url(/images/menu.svg);
122131
background-color: transparent;

0 commit comments

Comments
 (0)