Fix layout scrolling annoyances in Chrome mobile

This commit is contained in:
timvisee 2019-07-03 17:53:08 +02:00
parent e70119e877
commit 92dfa13800
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172
3 changed files with 13 additions and 3 deletions

View File

@ -1,8 +1,15 @@
/**
* Applause button, move to center of page.
*/
.applause-wrapper {
font-family: $font-main;
overflow: hidden;
margin: 0 auto;
}
applause-button {
width: 3em;
height: 3em;
margin: 2.5em auto 1.5em;
margin: 2.5em auto 2em;
}

View File

@ -9,7 +9,6 @@ main {
color: $color-text;
border: 1px solid $color-main-border;
box-shadow: 0 0 10px 5px rgba($color-main-border, 0.4);
overflow: auto;
}
content {
@ -17,6 +16,8 @@ content {
padding: 2.5em 3em;
background: $color-main-bg;
flex: 1;
overflow-x: auto;
overflow-y: visible;
#{headings(1,6,"header >")} {
margin: 0;

View File

@ -18,7 +18,9 @@
</div>
{% if page.extra.zenn_applause %}
<applause-button color="#a6a28c"></applause-button>
<div class="applause-wrapper">
<applause-button color="#a6a28c"></applause-button>
</div>
{% endif %}
</article>
{% endblock body %}