Skip to content

Commit

Permalink
Updating scroll button
Browse files Browse the repository at this point in the history
  • Loading branch information
eshal26 committed Oct 19, 2023
1 parent bcaa207 commit 22f25b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% assign t = site.data.locales[page.lang][page.lang] %}
<button id="scrollToTopButton" title="Go to top">Scroll to Top</button>
<button id="scrollToTopButton" title="Go to top"></button>
<footer class="bg-white border-top text-center pt-5">
<div class="container-lg p-responsive mx-auto">

Expand Down
13 changes: 10 additions & 3 deletions assets/css/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@
bottom: 20px;
right: 20px;
z-index: 99;
font-size: 16px;
background-color: #333;
color: #fff;
border: none;
cursor: pointer;
padding: 10px;
border-radius: 4px;
width: 50px;
height: 50px;
border-radius: 50%;
text-align: center;
font-size: 24px;
line-height: 50px;
}

#scrollToTopButton::before {
content: '\2191'; /* Unicode for an upwards arrow */
}

0 comments on commit 22f25b8

Please sign in to comment.