Spaces:
Sleeping
Sleeping
File size: 2,202 Bytes
d97b8f9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | /* Date picker styles for proper layering */
.rdp {
position: relative;
z-index: 9999 !important;
}
.date-picker-wrapper {
position: relative;
z-index: 999;
background: var(--popover);
color: var(--popover-foreground);
border-radius: var(--radius);
}
/* Make the calendar container itself clickable */
.rdp-months {
pointer-events: auto !important;
}
/* Fix for calendar popup position */
[data-radix-popper-content-wrapper] {
z-index: 9999 !important;
pointer-events: auto !important;
}
/* Fix popover portal position */
[data-radix-portal] {
z-index: 9999 !important;
pointer-events: auto !important;
}
/* Ensure buttons in calendar are clickable */
.rdp-button {
pointer-events: auto !important;
}
/* Force calendar to be visible and interactive */
.rdp-table {
pointer-events: auto !important;
position: relative;
z-index: 10;
}
/* Style the calendar day cells */
.rdp-cell {
pointer-events: auto !important;
}
/* For additional visibility in various contexts */
.rdp-day {
position: relative;
z-index: 50;
}
/* Override Radix UI Portal styles */
[data-radix-popper-content-wrapper] > div {
pointer-events: auto !important;
}
/* Ensure calendar is visible above other elements */
.rdp.rdp-root {
background-color: var(--popover);
border-radius: var(--radius);
}
/* Fix for Firefox */
@-moz-document url-prefix() {
.date-picker-wrapper {
transform: translateZ(0);
}
.rdp-months {
transform: translateZ(0);
}
}
/* Fix for Safari */
@media not all and (min-resolution:.001dpcm) {
@supports (-webkit-appearance:none) {
.date-picker-wrapper {
transform: translateZ(0);
}
.rdp-months {
transform: translateZ(0);
}
}
}
/* Fixed positioning for popover content */
.date-picker-wrapper {
transform-origin: var(--radix-popover-content-transform-origin);
animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes contentShow {
from {
opacity: 0;
transform: translate(-50%, -48%) scale(0.96);
}
to {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
} |