Skip to content

Commit

Permalink
make sidebar sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
mathroc committed Jul 22, 2023
1 parent bff9630 commit 3b81e2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/_layouts/psr.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
</div>
{% if page.related %}
<div class="columns__column columns__column--4 columns__column--padding_left">
<div class="columns__column columns__column--4 columns__column--padding_left sidebar__wrapper">
<nav class="sidebar">
<h2 class="sidebar__title">Additional Info:</h2>
<ul class="sidebar__list">
Expand Down
5 changes: 5 additions & 0 deletions source/_sass/blocks/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,8 @@
}
}
}

.sidebar__wrapper {
position: sticky;
top: 0;
}

0 comments on commit 3b81e2c

Please sign in to comment.