From c30640e137084b0c6f8bb03e5c7fd798e9e3e9ee Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Mon, 6 Nov 2023 08:29:51 +0100 Subject: [PATCH] fix de quelques rendus --- src/agenda_culturel/static/style.scss | 27 ++++++++++++------- .../templates/agenda_culturel/event-inc.html | 6 ----- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index bc1d223..a8aeb12 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -153,18 +153,25 @@ footer { clear: both; } -.infos-and-buttons { - display: flex; - flex-direction: row; - align-items: stretch; -} -.infos-and-buttons .infos { - flex: 50; -} -.infos-and-buttons .buttons { - flex: auto; +@media only screen and (min-width: 992px) { + + .infos-and-buttons { + display: flex; + flex-direction: row; + align-items: stretch; + } + + + + .infos-and-buttons .infos { + flex: 50; + } + + .infos-and-buttons .buttons { + flex: auto; + } } article.day { diff --git a/src/agenda_culturel/templates/agenda_culturel/event-inc.html b/src/agenda_culturel/templates/agenda_culturel/event-inc.html index 9162bb3..88e038a 100644 --- a/src/agenda_culturel/templates/agenda_culturel/event-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/event-inc.html @@ -3,12 +3,6 @@ {% load utils_extra %} {% load event_extra %} -{% comment %} - TODO: - * utiliser flex plutôt que float pour l'image et pour la date - * gérer le flex des boutons dans le cas de petits écrans -{% endcomment %} -
{% if display in "in list by day" %} {% if display == "in list by day" and event|can_show_start_time %}