Skip to content

Commit

Permalink
D8CORE-7454: Move back-to-top inside the <main> element
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Nov 6, 2024
1 parent 9d7fa73 commit 44a9c9f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion themes/stanford_basic/dist/css/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions themes/stanford_basic/src/scss/theme/_back_to_top.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
right: 20px;
text-align: center;
border-radius: 7px;
z-index: 5;
}
10 changes: 5 additions & 5 deletions themes/stanford_basic/templates/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
{%- block block_main -%}
{{ page.content }}
{%- endblock -%}

<button id="back-to-top">
<span class="fas fa-chevron-up"></span>
Back to Top
</button>
</main>

{# Footer Section #}
Expand All @@ -68,8 +73,3 @@
{%- include template_global_footer with { modifier_class : global_footer_variant } -%}
</footer>
{%- endblock -%}

<button id="back-to-top">
<span class="fas fa-chevron-up"></span>
Back to Top
</button>

0 comments on commit 44a9c9f

Please sign in to comment.