Skip to content

Commit

Permalink
Jump to top button
Browse files Browse the repository at this point in the history
  • Loading branch information
Terence Eden authored and jmhobbs committed Oct 1, 2024
1 parent edca193 commit 148abe6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/parrot.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ a.button-small:hover {
-webkit-animation-iteration-count:infinite;
}

a#top {
position: fixed;
bottom: 1em;
right: 1em;
cursor: pointer;
font-size: 2em;
color: revert;
}

@media (prefers-reduced-motion: reduce) {
a.button:hover, a.button-small:hover {
animation: none;
Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ <h3>Discord</h3>
</p>

<hr/>

<a href="#wrapper" id="top" title="Jump to top">⬆️</a>
</article>

<footer>
Expand Down

0 comments on commit 148abe6

Please # to comment.