[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [lego/master] Use mobile image



commit 5481af8133065d63eff0980a1f6c3a2bd53cdf7a
Author: hiro <hiro@xxxxxxxxxxxxxx>
Date:   Wed Oct 21 20:25:37 2020 +0200

    Use mobile image
---
 assets/scss/_donate.scss | 2 +-
 templates/header.html    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/assets/scss/_donate.scss b/assets/scss/_donate.scss
index fd70624..692a3a7 100644
--- a/assets/scss/_donate.scss
+++ b/assets/scss/_donate.scss
@@ -7,7 +7,7 @@
   .donate-title {
     display: none;
   }
-  .donate-has-image-mobile {
+  .donate-header-image-mobile {
     display: block;
     width: 100%;
     margin: 0 auto;
diff --git a/templates/header.html b/templates/header.html
index 9e19eb4..019eaea 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -15,6 +15,7 @@
           <div class="row pb-5">
             <h2 class="mx-auto display-3 text-white text-capitalize donate-title">{{ this.title }}</h2>
             <img src="{{ this.header_image | asseturl }}" class="donate-header-image" />
+            <img src="{{ this.header_image + '-mobile' | asseturl }}" class="donate-header-image-mobile" />
           </div>
         </div>
         {% else %}

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits