Merge pull request #57 from eetukarvonen/top-button

Add return to top button (#33)
This commit is contained in:
PLUJA 2020-09-14 19:59:24 +02:00 committed by GitHub
commit f9acfa69ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View File

@ -59,3 +59,9 @@
visibility: visible;
cursor: pointer;
}
.scroller {
position: fixed;
right: 80px;
bottom: 30px;
}

View File

@ -19,4 +19,10 @@
{% else %}
{% include '_empty_feed.html' %}
{% endif %}
<div class="scroller">
<a href="#top" class="ui button">
<i style="margin: 0;" class="chevron up icon"></i>
</a>
</div>
</div>
{% endblock %}

View File

@ -51,5 +51,10 @@
{% include '_twitter_post.html' %}
{% endfor %}
{% endif %}
<div class="scroller">
<a href="#top" class="ui button">
<i style="margin: 0;" class="chevron up icon"></i>
</a>
</div>
</div>
{% endblock %}