Skip to content

Commit 9ab6af8

Browse files
authored
fix: calendar styles (#1612)
1 parent f2a1ae0 commit 9ab6af8

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

src/unfold/static/unfold/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unfold/styles.css

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -509,29 +509,33 @@ fieldset details[open] > summary:after {
509509
/*******************************************************
510510
Calendar
511511
*******************************************************/
512+
.calendarbox .calendar {
513+
@apply min-h-[320px];
514+
}
515+
512516
.calendarbox,
513517
.clockbox {
514-
@apply bg-white border border-base-200 rounded-default shadow-xs text-base-500 text-sm w-80 z-50 dark:bg-base-800 dark:border-base-700 fixed! left-1/2! top-1/2! -translate-x-1/2 -translate-y-1/2;
518+
@apply bg-white border border-base-200 rounded-default shadow-xs w-80 z-50 dark:bg-base-800 dark:border-base-700 fixed! left-1/2! top-1/2! -translate-x-1/2 -translate-y-1/2;
515519
}
516520

517521
.calendar caption {
518-
@apply font-medium mb-3 py-3 text-base-700 dark:text-base-200;
522+
@apply font-semibold mb-3 py-3 text-important;
519523
}
520524

521525
.calendar table {
522526
@apply mb-3 w-full;
523527
}
524528

525529
.calendar table th {
526-
@apply font-medium text-center text-base-700 text-xs dark:text-base-200;
530+
@apply font-semibold text-center text-important text-xs;
527531
}
528532

529533
.calendar table td {
530534
@apply h-10 p-1 text-center w-10;
531535
}
532536

533537
.calendar table td a {
534-
@apply block flex h-8 items-center justify-center rounded-full transition-all w-8 dark:text-base-300;
538+
@apply block flex h-8 items-center justify-center rounded-full w-8 dark:text-base-300;
535539
}
536540

537541
.calendar table td a:hover {
@@ -547,7 +551,7 @@ fieldset details[open] > summary:after {
547551
}
548552

549553
.calendar-shortcuts a {
550-
@apply border border-base-200 font-medium leading-none mx-1 px-2 py-2 rounded-default shadow-xs text-center text-base-500 text-xs transition-all w-1/3 dark:border-base-700 dark:hover:border-base-600 dark:text-base-300 dark:hover:text-base-200;
554+
@apply border border-base-200 font-medium leading-none mx-1 px-2 py-2 rounded-default shadow-xs text-center text-base-500 text-xs w-1/3 dark:border-base-700 dark:text-base-300 ;
551555
}
552556

553557
.calendar-cancel {
@@ -558,28 +562,25 @@ fieldset details[open] > summary:after {
558562
@apply absolute block ml-2 mt-2 left-0 text-[0px] top-0;
559563
}
560564

561-
.calendarnav-next:after,
562-
.calendarnav-previous:after {
563-
@apply border border-base-200 flex h-7 items-center justify-center material-symbols-outlined rounded-full text-base-400 transition-all w-7 hover:border-primary-600 hover:text-primary-500 dark:bg-base-800 dark:border-base-700 dark:hover:border-base-800;
565+
.calendarnav-next,
566+
.calendarnav-previous {
567+
@apply after:border after:border-base-200 after:flex after:h-7 after:items-center after:justify-center after:material-symbols-outlined after:rounded-full after:transition-all after:w-7 dark:after:bg-base-800 dark:after:border-base-700;
568+
}
564569

570+
.calendarnav-previous:after {
565571
content: "navigate_before";
566572
display: flex;
567573
}
568574

569-
.calendarnav-next:hover:after,
570-
.calendarnav-previous:hover:after {
571-
@apply dark:border-base-600 dark:text-base-200;
575+
.calendarnav-next:after {
576+
content: "navigate_next";
577+
display: flex;
572578
}
573579

574580
.calendarnav-next {
575581
@apply absolute block mr-2 mt-2 right-0 text-[0px] top-0;
576582
}
577583

578-
.calendarnav-next:after {
579-
content: "navigate_next";
580-
display: flex;
581-
}
582-
583584
/*******************************************************
584585
Timepicker
585586
*******************************************************/

0 commit comments

Comments
 (0)