diff --git a/hosts/vm/mediakiwi/FullCalendar/resources/fullcalendar7/themes/breezy/palettes/rose.css b/hosts/vm/mediakiwi/FullCalendar/resources/fullcalendar7/themes/breezy/palettes/rose.css index 7fb32bf..8a1014f 100644 --- a/hosts/vm/mediakiwi/FullCalendar/resources/fullcalendar7/themes/breezy/palettes/rose.css +++ b/hosts/vm/mediakiwi/FullCalendar/resources/fullcalendar7/themes/breezy/palettes/rose.css @@ -1,8 +1,8 @@ :root { /* primary */ - --fc-breezy-primary: #e11d48; - --fc-breezy-primary-over: #f43f5e; + --fc-breezy-primary: #AD1F1F; + --fc-breezy-primary-over: #AD1F1F; --fc-breezy-primary-foreground: #ffffff; /* secondary */ @@ -14,9 +14,9 @@ --fc-breezy-secondary-icon-over: var(--fc-breezy-muted-foreground); /* calendar content */ - --fc-breezy-event: #ec4899; + --fc-breezy-event: #1FAD95; --fc-breezy-event-contrast: #fff; - --fc-breezy-background-event: #f97316; + --fc-breezy-background-event: #1F95AD; --fc-breezy-highlight: #ef444414; --fc-breezy-now: #ef4444; @@ -48,7 +48,49 @@ } @media not print { - [data-color-scheme=dark] { + :root.skin-theme-clientpref-night { + /* secondary */ + --fc-breezy-secondary: var(--fc-breezy-muted); + --fc-breezy-secondary-over: var(--fc-breezy-strong); + --fc-breezy-secondary-border: var(--fc-breezy-muted-border); + --fc-breezy-secondary-foreground: var(--fc-breezy-strong-foreground); + --fc-breezy-secondary-icon: var(--fc-breezy-muted-foreground); + --fc-breezy-secondary-icon-over: var(--fc-breezy-foreground); + + /* calendar content */ + --fc-breezy-highlight: #f8717114; + + /* controls */ + --fc-breezy-selected: var(--fc-breezy-muted); + + /* popovers */ + --fc-breezy-popover: #1f2937; + --fc-breezy-popover-border: var(--fc-breezy-border); + + /* neutral backgrounds */ + --fc-breezy-background: #111827; + --fc-breezy-faint: #ffffff08; + --fc-breezy-muted: #ffffff12; + --fc-breezy-strong: #ffffff1F; + --fc-breezy-stronger: #ffffff29; + --fc-breezy-strongest: #ffffff33; + + /* neutral foregrounds */ + --fc-breezy-foreground: #d1d5db; + --fc-breezy-muted-foreground: #9ca3af; + --fc-breezy-faint-foreground: #6b7280; + --fc-breezy-strong-foreground: #ffffff; + + /* neutral borders */ + --fc-breezy-border: #ffffff1A; + --fc-breezy-muted-border: #ffffff0D; + --fc-breezy-strong-border: #ffffff26; + } +} + +@media not print and (prefers-color-scheme:dark){ + /* Copie du thème night */ + :root.skin-theme-clientpref-os { /* secondary */ --fc-breezy-secondary: var(--fc-breezy-muted); --fc-breezy-secondary-over: var(--fc-breezy-strong); diff --git a/hosts/vm/mediakiwi/FullCalendar/resources/fullcalendar7/themes/breezy/theme.css b/hosts/vm/mediakiwi/FullCalendar/resources/fullcalendar7/themes/breezy/theme.css index 493bc97..386adea 100644 --- a/hosts/vm/mediakiwi/FullCalendar/resources/fullcalendar7/themes/breezy/theme.css +++ b/hosts/vm/mediakiwi/FullCalendar/resources/fullcalendar7/themes/breezy/theme.css @@ -803,7 +803,8 @@ } .fc-breezy-TZ4 { - white-space: nowrap + /* PATCH Crans : pour wrap le texte et pouvoir le lire sur mobile */ + /* white-space: nowrap */ } .fc-breezy-jm6 { diff --git a/hosts/vm/mediakiwi/FullCalendar/resources/init.js b/hosts/vm/mediakiwi/FullCalendar/resources/init.js index e3ee745..a498e27 100644 --- a/hosts/vm/mediakiwi/FullCalendar/resources/init.js +++ b/hosts/vm/mediakiwi/FullCalendar/resources/init.js @@ -8,6 +8,12 @@ mw.hook('wikipage.content').add(function() { try { const url = new URL(el.dataset.ics); let calendar = new FullCalendar.Calendar(el, { + headerToolbar: { + start: 'prev,today,next', + center: 'title', + end: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek,multiMonthYear', + }, + locale: 'fr', events: { url: url.href, format: 'ics'