put related assembiles below

This commit is contained in:
j 2021-10-22 17:20:26 +01:00
parent 3dbd3962c8
commit bb233d7072
2 changed files with 22 additions and 17 deletions

View file

@ -66,13 +66,15 @@ main > .film {
margin-bottom: var(--spacing-2);
max-width: 250px;
}
.texts {
padding-top: var(--spacing-2);
margin-top: var(--spacing-2);
margin-bottom: var(--spacing-2);
.text {
padding-bottom: var(--spacing-2);
}
}
}
@media screen and (max-width: 799px) {
h1 {
span {
@ -95,7 +97,7 @@ main > .film {
opacity: 0;
}
.info-meta, .bio-block, .play, .summary-block {
.info-meta, .bio-block, .play, .summary-block, .texts {
background: rgba(0, 0, 0, 0.55);
border-radius: 2px;
box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);

View file

@ -51,7 +51,15 @@ body {
</div>
</div>
<div class="play">
<div class="film-play-block">
<div><a href="" id="play-fullscreen" class="icon-play"><span>&#x25b6;</span></a></div>
<div class="film-play-spacer">OR</div>
<div><a href="https://pad.ma/{{ film.padma_id }}/info" target="_blank">watch on pad.ma</a></div>
</div>
</div>
{% if film.related_texts.exists %}
<div class="texts">
<h2>related assemblies</h2>
{% for text in film.related_texts %}
<div class="text">
<a href="{{ text.get_absolute_url }}">
@ -61,12 +69,7 @@ body {
</div>
{% endfor %}
</div>
<div class="film-play-block">
<div><a href="" id="play-fullscreen" class="icon-play"><span>&#x25b6;</span></a></div>
<div class="film-play-spacer">OR</div>
<div><a href="https://pad.ma/{{ film.padma_id }}/info" target="_blank">watch on pad.ma</a></div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}