mirror of https://gitlab.crans.org/nounous/nixos
Improve wiki calendar
parent
73094965b1
commit
432457ff6c
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/* primary */
|
/* primary */
|
||||||
--fc-breezy-primary: #e11d48;
|
--fc-breezy-primary: #AD1F1F;
|
||||||
--fc-breezy-primary-over: #f43f5e;
|
--fc-breezy-primary-over: #AD1F1F;
|
||||||
--fc-breezy-primary-foreground: #ffffff;
|
--fc-breezy-primary-foreground: #ffffff;
|
||||||
|
|
||||||
/* secondary */
|
/* secondary */
|
||||||
|
|
@ -14,9 +14,9 @@
|
||||||
--fc-breezy-secondary-icon-over: var(--fc-breezy-muted-foreground);
|
--fc-breezy-secondary-icon-over: var(--fc-breezy-muted-foreground);
|
||||||
|
|
||||||
/* calendar content */
|
/* calendar content */
|
||||||
--fc-breezy-event: #ec4899;
|
--fc-breezy-event: #1FAD95;
|
||||||
--fc-breezy-event-contrast: #fff;
|
--fc-breezy-event-contrast: #fff;
|
||||||
--fc-breezy-background-event: #f97316;
|
--fc-breezy-background-event: #1F95AD;
|
||||||
--fc-breezy-highlight: #ef444414;
|
--fc-breezy-highlight: #ef444414;
|
||||||
--fc-breezy-now: #ef4444;
|
--fc-breezy-now: #ef4444;
|
||||||
|
|
||||||
|
|
@ -48,7 +48,49 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media not print {
|
@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 */
|
/* secondary */
|
||||||
--fc-breezy-secondary: var(--fc-breezy-muted);
|
--fc-breezy-secondary: var(--fc-breezy-muted);
|
||||||
--fc-breezy-secondary-over: var(--fc-breezy-strong);
|
--fc-breezy-secondary-over: var(--fc-breezy-strong);
|
||||||
|
|
|
||||||
|
|
@ -803,7 +803,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-breezy-TZ4 {
|
.fc-breezy-TZ4 {
|
||||||
white-space: nowrap
|
/* PATCH Crans : pour wrap le texte et pouvoir le lire sur mobile */
|
||||||
|
/* white-space: nowrap */
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-breezy-jm6 {
|
.fc-breezy-jm6 {
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,12 @@ mw.hook('wikipage.content').add(function() {
|
||||||
try {
|
try {
|
||||||
const url = new URL(el.dataset.ics);
|
const url = new URL(el.dataset.ics);
|
||||||
let calendar = new FullCalendar.Calendar(el, {
|
let calendar = new FullCalendar.Calendar(el, {
|
||||||
|
headerToolbar: {
|
||||||
|
start: 'prev,today,next',
|
||||||
|
center: 'title',
|
||||||
|
end: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek,multiMonthYear',
|
||||||
|
},
|
||||||
|
locale: 'fr',
|
||||||
events: {
|
events: {
|
||||||
url: url.href,
|
url: url.href,
|
||||||
format: 'ics'
|
format: 'ics'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue