fix releases style on mobile
This commit is contained in:
parent
b904496673
commit
78a5e6c8a1
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB |
BIN
idre/static/img/bandcamp-button-square-black-128.png
Normal file
BIN
idre/static/img/bandcamp-button-square-black-128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
|
@ -19,9 +19,13 @@
|
|||
{% if release.release_type == 3 %}Demo{% endif %}
|
||||
</h1>
|
||||
<p class="contributors">
|
||||
{% 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 %}
|
||||
</p>
|
||||
<p class="extras">
|
||||
{{ release.tag }} — {{ release.year }}
|
||||
|
@ -31,7 +35,7 @@
|
|||
<div class="release-links">
|
||||
{% if release.url_bandcamp %}
|
||||
<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>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue