aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sass/include/_top.scss16
-rw-r--r--templates/page.html4
2 files changed, 14 insertions, 6 deletions
diff --git a/sass/include/_top.scss b/sass/include/_top.scss
index b9fd406..5ad0898 100644
--- a/sass/include/_top.scss
+++ b/sass/include/_top.scss
@@ -1,11 +1,17 @@
-.top {
+.topout {
+ display: flex;
position: sticky;
- bottom: 9px;
- right: 9px;
-
+ bottom: 1px;
+ padding: 20px;
place-self: end;
margin-top: 109vh;
-
+ pointer-events: none;
+}
+.topin {
+ margin-left: auto;
+ pointer-events: all;
+}
+.top {
padding: 9px;
font-weight:700;
border-radius: 9px;
diff --git a/templates/page.html b/templates/page.html
index eb06ac3..8283d31 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -69,7 +69,9 @@
{%- if page.reading_time %}
{%- if page.reading_time > 1 %}
-<a href="#" class="top">&cuwed;</a>
+<div class="topout">
+<div> </div><div class="topin"><a href="#" class="top">&cuwed;</a></div>
+</div>
{%- endif %}
{%- endif %}