Skip to content

Commit 9f2a5ae

Browse files
committed
Continue to display sidebar when page scrolls
1 parent 7d4057b commit 9f2a5ae

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

assets/sass/layout.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ body {
2727
}
2828

2929
aside {
30-
float: left;
3130
width: 218px;
3231
margin-bottom: 35px;
32+
position: sticky;
33+
top: 0;
34+
max-height: 100vh;
35+
overflow-y: auto;
36+
/* align with the top of the content */
37+
padding-top: 46px;
3338
}
3439

3540
#content {
36-
float: right;
3741
width: 702px;
3842
}
3943

@@ -437,6 +441,10 @@ table.benchmarks {
437441
}
438442
}
439443

444+
#content-wrapper {
445+
display: flex;
446+
}
447+
440448
// Breakpoint ----------------
441449
@media (max-width: $default) {
442450
.responsive-table { overflow-x: auto; }

0 commit comments

Comments
 (0)