Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit6ec4542fecf9918690728bbf9162529735b4a9db (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-07-10 16:30:44 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-07-10 16:30:44 +0300
Filesa3a67018114b6e0e7ad09fc89889cadf3b1a163b /src
syndamia.com-6ec4542fecf9918690728bbf9162529735b4a9db.tar
syndamia.com-6ec4542fecf9918690728bbf9162529735b4a9db.tar.gz
syndamia.com-6ec4542fecf9918690728bbf9162529735b4a9db.zip
Parent932d12e11864d2554523d3c46bec83932d37812d (diff)
(scrollbtn) Reworked styling and HTML to use the character icon
2 files changed, 6 insertions, 6 deletions
-rw-r--r--src/_footer.html2
-rw-r--r--src/styles.css10
diff --git a/src/_footer.html b/src/_footer.html
index 986a60a..3af5205 100644
--- a/src/_footer.html
+++ b/src/_footer.html
@@ -1,6 +1,6 @@
</article>
- <img id="scrollBtn" class="icon unzoomable btn" src="/img/chevrons-up.svg" alt="^">
+ <div id="scrollBtn" class="btn">&#xFE3D;</div>
</body>
<script type="text/javascript" src="/scripts/theme-changer.js" crossorigin="anonymous" defer></script>
diff --git a/src/styles.css b/src/styles.css
index e2b02f2..1b3b204 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -379,14 +379,14 @@ dt, dd {
}
/* back-to-top.js */
#scrollBtn {
- background-color: transparent;
- bottom: 1em;
+ background-color: var(--bg-color);
+ bottom: 1rem;
border: 1px solid;
display: none;
- font-size: 1rem;
+ font-size: 1.66rem;
position: fixed;
- padding: 0.3em;
- right: 1em;
+ padding: 0 0.15em;
+ right: 1rem;
transition-duration: 0.5s;
z-index: 1;
}