1
0
Fork 0

fix releases style on mobile

This commit is contained in:
Adrien Abraham 2023-09-15 10:15:23 +02:00
parent b904496673
commit 78a5e6c8a1
4 changed files with 37 additions and 16 deletions

View file

@ -54,31 +54,49 @@ body {
bottom: 0; bottom: 0;
right: 0; right: 0;
width: 100%; width: 100%;
background: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.5);
} }
.release-infos { .release-infos {
position: relative; position: relative;
display: flex; display: flex;
flex-flow: column nowrap; flex-flow: column nowrap;
justify-content: center; justify-content: end;
align-items: center; align-items: left;
padding: 1em; padding: 1em;
text-align: left;
font-family: "Neuton", serif; font-family: "Neuton", serif;
text-align: center;
text-shadow: 0px 0px 4px #000000; text-shadow: 0px 0px 4px #000000;
} }
.release-infos .title { .release-infos .title {
margin: 0; margin: 0;
font-size: 1.5em; font-size: 1.3em;
line-height: 1.1em; line-height: 1.1em;
} }
.release-infos .contributors, .release-infos .contributors,
.release-infos .extras { .release-infos .extras {
margin: 0; 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) { @media screen and (min-width: 992px) {
@ -98,8 +116,11 @@ body {
} }
.release-infos { .release-infos {
justify-content: center;
align-items: center;
padding: 2em; padding: 2em;
height: 80%; height: 80%;
text-align: center;
} }
.release-infos .title { .release-infos .title {
@ -112,19 +133,15 @@ body {
} }
.release-links { .release-links {
position: absolute; bottom: -1em;
bottom: -1.5em; right: unset;
height: 3em; height: 3em;
width: 100%;
display: flex;
justify-content: center; justify-content: center;
gap: 0.5em;
} }
.release-link img { .release-link img {
max-width: 3em; max-width: 3em;
border: 2px solid white; border: 2px solid white;
border-radius: 0.5em;
} }
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -19,9 +19,13 @@
{% if release.release_type == 3 %}Demo{% endif %} {% if release.release_type == 3 %}Demo{% endif %}
</h1> </h1>
<p class="contributors"> <p class="contributors">
{% if release.contribs|length < 3 %}
{% for contrib in release.contribs %} {% for contrib in release.contribs %}
{{ contrib.name }}{% if not forloop.last %},{% endif %} {{ contrib.name }}{% if not forloop.last %},{% endif %}
{% endfor %} {% endfor %}
{% else %}
(collab)
{% endif %}
</p> </p>
<p class="extras"> <p class="extras">
{{ release.tag }} — {{ release.year }} {{ release.tag }} — {{ release.year }}
@ -31,7 +35,7 @@
<div class="release-links"> <div class="release-links">
{% if release.url_bandcamp %} {% if release.url_bandcamp %}
<a href="{{ release.url_bandcamp }}" class="release-link"> <a href="{{ release.url_bandcamp }}" class="release-link">
<img src="{% static 'img/bandcamp-button-square-aqua-128.png' %}" alt="Bandcamp logo"> <img src="{% static 'img/bandcamp-button-square-black-128.png' %}" alt="Bandcamp logo">
</a> </a>
{% endif %} {% endif %}
</div> </div>