Rendu des images sur petits écrans

Fix #113
This commit is contained in:
Jean-Marie Favreau 2024-05-01 10:02:16 +02:00
parent 6e0f62773e
commit 89ab546b88
2 changed files with 17 additions and 7 deletions

View File

@ -161,15 +161,25 @@ svg {
} }
.illustration { .illustration {
float: right; width: 100%;
width: 20em;
margin: 0 0 0.5em .5em;
padding: 0.3em; padding: 0.3em;
margin: 0;
}
@media only screen and (min-width: 550px) {
.illustration {
width: 40%;
float: right;
margin: 0 0 0.5em .5em;
}
}
@media only screen and (min-width: 992px) {
.illustration {
width: 20em;
} }
.illustration-small {
@extend .illustration;
width: 10em;
} }
footer { footer {

View File

@ -42,7 +42,7 @@
{% endif %} {% endif %}
{% if event.image or event.local_image %} {% if event.image or event.local_image %}
<article class='illustration-small'> <article class='illustration'>
<img src="{% if event.local_image %}{{ event.local_image.url }}{% else %}{{ event.image }}{% endif %}" alt="{{ event.image_alt }}" /> <img src="{% if event.local_image %}{{ event.local_image.url }}{% else %}{{ event.image }}{% endif %}" alt="{{ event.image_alt }}" />
</article> </article>
{% endif %} {% endif %}