Commit 9e293ce8 authored by Kaushal Modi's avatar Kaushal Modi

Add "Back to top" link in single layout

parent ebe3e99f
......@@ -81,6 +81,11 @@
</div>
{{ end }}
<!-- Back to top -->
<div class="backtotop center no-text-decoration">
<a href="#top">back to <span class="top">top</span></a>
</div>
<!-- Tags/categories -->
<div class="right">{{ partial "taxo-buttons.html" . }}</div>
<div class="clear-float"></div>
......
......@@ -69,7 +69,7 @@
/* Blinking cursor */
/* Post */
/* Summary */
/* Read More */
/* Back to Top, Read More */
/* Keyboard tags */
/* Image */
/* Captions */
......@@ -1149,19 +1149,28 @@ ol>li::before {
margin-bottom: 1rem;
}
/* ** Read More */
/* ** Back to Top, Read More */
.backtotop,
.readmore {
font-family: var(--sans-serif-1);
color: var(--grey-light);
margin-top: -1rem; /* Reduce whitespace above the 'Read more' links after summaries */
}
.backtotop .top,
.readmore .more {
font-weight: bold;
}
.backtotop a:hover,
.readmore a:hover {
color: var(--theme-color);
}
/* Reduce whitespace above the 'Read more' links after summaries */
.readmore {
margin-top: -1rem;
}
.backtotop {
margin-top: 2rem;
margin-bottom: 2rem;
}
/* Accessible 'Read more' links */
/* https://accessibility.oit.ncsu.edu/it-accessibility-at-nc-state/developers/accessibility-handbook/mouse-and-keyboard-events/links/link-text-needs-to-be-uniquely-identifiable-within-the-page/ */
.screen-readers-only {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment