From 78a5e6c8a18ec4449945986a8d7f952e02063db4 Mon Sep 17 00:00:00 2001 From: Adrien Abraham Date: Fri, 15 Sep 2023 10:15:23 +0200 Subject: [PATCH] fix releases style on mobile --- idre/static/css/base.css | 41 +++++++++++++----- .../img/bandcamp-button-square-aqua-128.png | Bin 2896 -> 0 bytes .../img/bandcamp-button-square-black-128.png | Bin 0 -> 2712 bytes label/templates/label/releases.html | 12 +++-- 4 files changed, 37 insertions(+), 16 deletions(-) delete mode 100644 idre/static/img/bandcamp-button-square-aqua-128.png create mode 100644 idre/static/img/bandcamp-button-square-black-128.png diff --git a/idre/static/css/base.css b/idre/static/css/base.css index 09d3080..91e9438 100644 --- a/idre/static/css/base.css +++ b/idre/static/css/base.css @@ -54,31 +54,49 @@ body { bottom: 0; right: 0; width: 100%; - background: rgba(0, 0, 0, 0.4); + background: rgba(0, 0, 0, 0.5); } .release-infos { position: relative; display: flex; flex-flow: column nowrap; - justify-content: center; - align-items: center; + justify-content: end; + align-items: left; padding: 1em; + text-align: left; font-family: "Neuton", serif; - text-align: center; text-shadow: 0px 0px 4px #000000; } .release-infos .title { margin: 0; - font-size: 1.5em; + font-size: 1.3em; line-height: 1.1em; } .release-infos .contributors, .release-infos .extras { margin: 0; - font-size: 1.2em; + font-size: 1em; +} + +.release-links { + position: absolute; + bottom: 0.5em; + right: 0.5em; + height: 1.5em; + width: 100%; + display: flex; + justify-content: right; + gap: 0.5em; + z-index: 1; +} + +.release-link img { + max-width: 1.5em; + border: 1px solid white; + border-radius: 0.5em; } @media screen and (min-width: 992px) { @@ -98,8 +116,11 @@ body { } .release-infos { + justify-content: center; + align-items: center; padding: 2em; height: 80%; + text-align: center; } .release-infos .title { @@ -112,19 +133,15 @@ body { } .release-links { - position: absolute; - bottom: -1.5em; + bottom: -1em; + right: unset; height: 3em; - width: 100%; - display: flex; justify-content: center; - gap: 0.5em; } .release-link img { max-width: 3em; border: 2px solid white; - border-radius: 0.5em; } } diff --git a/idre/static/img/bandcamp-button-square-aqua-128.png b/idre/static/img/bandcamp-button-square-aqua-128.png deleted file mode 100644 index cec2a475d9b90fa4bded1299ddd8d205901ab5e3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2896 zcmdUx`9IT-1IORyzR$=t5m7{u*cfx=9;GOoA(W#J62_R#T{$aJn7gE0lN{xU4zirf z@sV>{?i^dq%<=8}Uwpqmyk5^=UXRD?_2cWFGs0R}Ku!Pv0AX7j%S(Sr_^GxfY3N$o+2Z93^;@0OmXrwCIIh4g^!xxwg3?DLEmeK@rm<)I^<;t z=(^}1Rx{2`GPYPb#8RD~P@cizuhl|*zSn9PQ(KYP)~XNKr36-?E)W|rtnjw=`Q@Nb z`%9+Q%QNJ~5h;0_)j@`5Jz(=?-H^EP(nzOjXmUqAhR2`%z_rFt$f6|&m_w5Ls*b5^ z3b8ol>3I=70a4%D4vFGWz%HzE=pXw&kly8^oQhF(c?V+?;Lk&oS+Y>z*EO_l>r+{G z&Fhqz1$VN{^UzX|*TGlRE;Zrd8JZJz4c|_&t$R~wi!J;Dg}(rHX8cBTyuV*su6RLT z9Hihv6vu5Va>x>LfOY{av9?CbftA#DW^a{539m07B&*3xwU*L2;@-0Zhynh-IpAue zdF01u+!TMc#J1~Lgl~G&fiiT|z^0BKHUcxI#-LV{NA)!CA6V%qscn&xC5eo8+yVWld?b<%a#F7fNQD7Ofp#hUfFwr-u9 z<3ag=8Ls;mj@C$hoyhcTB?RZY6>jSKir3A{dpSnOsgf8J19=bm#YcCxRhG8{MT(}K z9cM1@&L5#K1u2~@&o~S&F>rr3g_6F5m^=HvU*WgK8RGH-&i?Qe`av-N>vz9R$V z#wVT~UmsjYQyla_ZG^fv*Dbzd>t!S}M!qmV_hZI#9MJB83eDtRXOq3z6Xvxlr|!f> z-uQv&EC@NrmFf!O1G~S;uEo_3U=8ON-y6fhf`5buSgQ_v`3H>1f)H^`bHs4|&6zUw zR(~md6CQc0TsK|lu6)s~Of=^D=A*2Ea-nLq^OG%Q_wA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ab 100644 --- a/label/templates/label/releases.html +++ b/label/templates/label/releases.html @@ -19,9 +19,13 @@ {% if release.release_type == 3 %}Demo{% endif %}

- {% for contrib in release.contribs %} - {{ contrib.name }}{% if not forloop.last %},{% endif %} - {% endfor %} + {% if release.contribs|length < 3 %} + {% for contrib in release.contribs %} + {{ contrib.name }}{% if not forloop.last %},{% endif %} + {% endfor %} + {% else %} + (collab) + {% endif %}

{{ release.tag }} — {{ release.year }} @@ -31,7 +35,7 @@