From a49f68cf83a80af8ba507d44cfe5d60bbc19e020 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 14 Jan 2024 14:27:16 +0100 Subject: [PATCH] =?UTF-8?q?am=C3=A9lioration=20du=20focus=20sur=20le=20jou?= =?UTF-8?q?r=20d'hui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/static/style.scss | 4 ++++ .../templates/agenda_culturel/day-inc.html | 11 +++++++++++ .../templates/agenda_culturel/page-week.html | 8 ++++---- .../templates/agenda_culturel/page.html | 4 ++-- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index cd88ee0..202edd8 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -171,10 +171,14 @@ footer { #calendar { width: 100%; overflow: auto; + scroll-snap-type: both mandatory; .grid { grid-template-columns: repeat(auto-fit, minmax(0%, 1fr)); min-width: 1500px; + article { + scroll-snap-align: start; + } } .grid.week-in-month { diff --git a/src/agenda_culturel/templates/agenda_culturel/day-inc.html b/src/agenda_culturel/templates/agenda_culturel/day-inc.html index fce6461..05d697a 100644 --- a/src/agenda_culturel/templates/agenda_culturel/day-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/day-inc.html @@ -8,6 +8,17 @@ {% with "date-"|add:daytag as daytag %}
+ {% if day.is_today %} + + {% endif %} <{% if headers %}{{ headers }}{% else %}h2{% endif %}>{{ day.date | date:"l j" }} diff --git a/src/agenda_culturel/templates/agenda_culturel/page-week.html b/src/agenda_culturel/templates/agenda_culturel/page-week.html index bb07047..fec82bf 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-week.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-week.html @@ -34,11 +34,11 @@ Semaine du {{ calendar.calendar_days_list.0.date }}

Semaine du {{ calendar.calendar_days_list.0.date }}

diff --git a/src/agenda_culturel/templates/agenda_culturel/page.html b/src/agenda_culturel/templates/agenda_culturel/page.html index e03f054..7b2b9f2 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page.html +++ b/src/agenda_culturel/templates/agenda_culturel/page.html @@ -34,8 +34,8 @@