Skip to content

Commit

Permalink
docs: improve back-to-top positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroedin committed Jun 4, 2024
1 parent c6bffca commit 9c075bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/_includes/layouts/pages/basic.njk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ importElements:
<div class="container">
{{ content | safe }}
</div>


</article>
{% include "partials/component/back-to-top.njk" %}
</main>
{% include 'partials/component/footer.njk' %}
3 changes: 2 additions & 1 deletion docs/_includes/partials/component/back-to-top.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
display: none;
pointer-events: none;
position: sticky;
float: right;
justify-content: flex-end;
width: 100%;
bottom: 32px;
margin-block-start: -64px;
padding-inline-end: 32px;
Expand Down

0 comments on commit 9c075bc

Please sign in to comment.