mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-21 14:08:15 +02:00
Merge pull request #223 from R0m1k3/1.1
Improve calendar weekend styling for better visual clarity
This commit is contained in:
2 files changed
+31
-1
No files matched your search
@@ -28,9 +28,13 @@ function Calendar({
|
|||||||
...props.modifiers,
|
...props.modifiers,
|
||||||
}}
|
}}
|
||||||
modifiersClassNames={{
|
modifiersClassNames={{
|
||||||
weekend: "bg-gray-100 dark:bg-gray-800",
|
weekend: "weekend-day",
|
||||||
...props.modifiersClassNames,
|
...props.modifiersClassNames,
|
||||||
}}
|
}}
|
||||||
|
modifiersStyles={{
|
||||||
|
weekend: { backgroundColor: '#f3f4f6' },
|
||||||
|
...props.modifiersStyles,
|
||||||
|
}}
|
||||||
classNames={{
|
classNames={{
|
||||||
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
||||||
month: "space-y-4",
|
month: "space-y-4",
|
||||||
|
|||||||
@@ -325,3 +325,29 @@ button[aria-current="date"]:focus-visible,
|
|||||||
outline: 2px solid #2563eb !important;
|
outline: 2px solid #2563eb !important;
|
||||||
outline-offset: 2px !important;
|
outline-offset: 2px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Style pour les weekends dans le calendrier - FOND GRIS CLAIR */
|
||||||
|
.weekend-day,
|
||||||
|
.rdp-day.weekend-day,
|
||||||
|
.rdp-button.weekend-day {
|
||||||
|
background-color: #f3f4f6 !important; /* bg-gray-100 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .weekend-day,
|
||||||
|
.dark .rdp-day.weekend-day,
|
||||||
|
.dark .rdp-button.weekend-day {
|
||||||
|
background-color: #1f2937 !important; /* bg-gray-800 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Forcer le style weekend sur tous les samedis et dimanches */
|
||||||
|
[data-day-weekend="true"],
|
||||||
|
button[data-day-weekend="true"],
|
||||||
|
.rdp-day[data-day-weekend="true"] {
|
||||||
|
background-color: #f3f4f6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark [data-day-weekend="true"],
|
||||||
|
.dark button[data-day-weekend="true"],
|
||||||
|
.dark .rdp-day[data-day-weekend="true"] {
|
||||||
|
background-color: #1f2937 !important;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user