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 {
float: right;
width: 20em;
margin: 0 0 0.5em .5em;
width: 100%;
padding: 0.3em;
margin: 0;
}
.illustration-small {
@extend .illustration;
width: 10em;
@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;
}
}
footer {

View File

@ -42,7 +42,7 @@
{% endif %}
{% 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 }}" />
</article>
{% endif %}