Skip to content

Commit

Permalink
top button
Browse files Browse the repository at this point in the history
  • Loading branch information
lesslate committed Feb 4, 2019
1 parent 62cf1e8 commit ce2cccc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
{% include footer.html %}
</footer>
</div>

<aside class="sidebar__top">
<a href="#site-nav"> <i class="fas fa-angle-double-up fa-2x"></i></a>
</aside>
{% include scripts.html %}

</body>
Expand Down
7 changes: 6 additions & 1 deletion _sass/minimal-mistakes/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@
margin-right: -1 * $right-sidebar-width;
}
}

.sidebar__top {
position: fixed;
bottom: 1.5em;
right: 2em;
z-index: 10;
}
.splash .sidebar__right {
@include breakpoint($large) {
position: relative;
Expand Down

0 comments on commit ce2cccc

Please sign in to comment.