summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix.sipma@no-log.org>2019-11-16 21:32:08 +0100
committerFélix Sipma <felix.sipma@no-log.org>2019-11-16 21:32:08 +0100
commit95c26ac6ec90fdbffc059d2d0083d7f0356163f4 (patch)
treec563879db95eba56a3829873b3e1ab010aab2fdb
parent4b1a2ec571448ad285392837a91b247ceadc3ea4 (diff)
banner: fix display on mobile
-rw-r--r--static/scss/ferme.scss4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/scss/ferme.scss b/static/scss/ferme.scss
index 88f1fb1..a6703e6 100644
--- a/static/scss/ferme.scss
+++ b/static/scss/ferme.scss
@@ -264,6 +264,8 @@ h1 {
overflow: hidden;
@include until($tablet) {
background-image: str-replace($ferme-banner-img-src, '.jpg', '_768.jpg');
+ background-position: center 0%;
+ background-size: unset;
}
@include tablet-only {
background-image: str-replace($ferme-banner-img-src, '.jpg', '_1024.jpg');
@@ -278,7 +280,7 @@ h1 {
background-image: $ferme-banner-img-src;
}
background-attachment: fixed;
- background-position: top;
+ background-position: bottom;
background-repeat: no-repeat;
background-size: cover;
}