GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 9ec3e811 authored by Hiro's avatar Hiro 🏄

Use mobile image

parent fe72d3bd
......@@ -2,6 +2,9 @@
font-family: League Gothic;
src: url('fonts/LeagueGothic/League_Gothic_Regular.woff');
}
.donate-header-image {
width: 100%;
}
.donate-has-image {
.donate-title {
......
......@@ -8168,6 +8168,9 @@ a.side-nav.active {
@font-face {
font-family: League Gothic;
src: url("fonts/LeagueGothic/League_Gothic_Regular.woff"); }
.donate-header-image {
width: 100%; }
.donate-has-image .donate-title {
display: none; }
.donate-has-image .donate-header-image-mobile {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -16,7 +16,7 @@
<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" />
{% set idx = this.header_image.index(".png") %}
{% set header_mobile = this.header_image[:idx] + "-mobile" + this.header_image[:idx] %}
{% set header_mobile = this.header_image[:idx] + "-mobile" + this.header_image[idx:] %}
<img src="{{ header_mobile | asseturl }}" class="donate-header-image-mobile" />
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment