|
74 | 74 | transition: all 0.2s ease; |
75 | 75 | cursor: pointer; |
76 | 76 | box-sizing: border-box; |
77 | | - /* Left justify text in date fields */ |
78 | 77 | text-align: left; |
79 | 78 | } |
80 | 79 |
|
|
88 | 87 | box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1); |
89 | 88 | } |
90 | 89 |
|
91 | | -/* Override placeholder alignment */ |
| 90 | +/* Placeholder alignment */ |
92 | 91 | .mfkDatepicker::placeholder { |
93 | 92 | text-align: left; |
94 | 93 | } |
95 | 94 |
|
96 | | -/* For WebKit browsers */ |
97 | 95 | .mfkDatepicker::-webkit-input-placeholder { |
98 | 96 | text-align: left; |
99 | 97 | } |
100 | 98 |
|
101 | | -/* For Firefox */ |
102 | 99 | .mfkDatepicker::-moz-placeholder { |
103 | 100 | text-align: left; |
104 | 101 | } |
105 | 102 |
|
106 | | -/* For Internet Explorer */ |
107 | 103 | .mfkDatepicker:-ms-input-placeholder { |
108 | 104 | text-align: left; |
109 | 105 | } |
|
219 | 215 | width: 28px; |
220 | 216 | height: 28px; |
221 | 217 | font-size: 12px; |
222 | | - margin-top: 0; |
223 | | - margin-bottom: 0; |
| 218 | + margin: 0; |
224 | 219 | align-self: flex-end; |
225 | | - margin-top: -0.25rem; |
226 | 220 | } |
227 | 221 |
|
228 | 222 | .mfkLabel { |
|
245 | 239 | width: 100%; |
246 | 240 | box-sizing: border-box; |
247 | 241 | min-width: 120px; |
248 | | - /* Left justify text on mobile too */ |
249 | 242 | text-align: left; |
250 | 243 | } |
251 | 244 |
|
|
381 | 374 | color: #94a3b8 !important; |
382 | 375 | } |
383 | 376 |
|
384 | | -/* React-datepicker base styles (light mode) */ |
| 377 | +/* React-datepicker base styles (light mode) - improved contrast */ |
385 | 378 | .mfkContainer :global(.react-datepicker) { |
386 | 379 | background-color: #ffffff !important; |
387 | 380 | border: 1px solid #e2e8f0 !important; |
|
399 | 392 | } |
400 | 393 |
|
401 | 394 | .mfkContainer :global(.react-datepicker__header) { |
402 | | - background-color: #f9fafb !important; |
| 395 | + background-color: #f8fafc !important; |
403 | 396 | border-bottom: 1px solid #e2e8f0 !important; |
404 | 397 | padding: 0.75rem 0.75rem 0.5rem 0.75rem !important; |
405 | 398 | border-top-left-radius: 0.75rem !important; |
406 | 399 | border-top-right-radius: 0.75rem !important; |
407 | 400 | } |
408 | 401 |
|
409 | 402 | .mfkContainer :global(.react-datepicker__current-month) { |
410 | | - color: #1e293b !important; |
| 403 | + color: #0f172a !important; |
411 | 404 | font-weight: 600 !important; |
412 | 405 | font-size: 0.9rem !important; |
413 | 406 | margin-bottom: 0.5rem !important; |
|
434 | 427 | } |
435 | 428 |
|
436 | 429 | .mfkContainer :global(.react-datepicker__day) { |
437 | | - color: #1e293b !important; |
| 430 | + color: #0f172a !important; |
438 | 431 | width: 2rem !important; |
439 | 432 | line-height: 2rem !important; |
440 | 433 | border-radius: 9999px !important; |
|
445 | 438 | } |
446 | 439 |
|
447 | 440 | .mfkContainer :global(.react-datepicker__day:hover) { |
448 | | - background-color: #f1f5f9 !important; |
| 441 | + background-color: #e2e8f0 !important; |
449 | 442 | transform: scale(1.05) !important; |
450 | 443 | } |
451 | 444 |
|
|
462 | 455 |
|
463 | 456 | .mfkContainer :global(.react-datepicker__day--keyboard-selected) { |
464 | 457 | background-color: #dbeafe !important; |
465 | | - color: #1e293b !important; |
| 458 | + color: #0f172a !important; |
466 | 459 | font-weight: 500 !important; |
467 | 460 | } |
468 | 461 |
|
469 | 462 | .mfkContainer :global(.react-datepicker__day--in-range) { |
470 | 463 | background-color: #dbeafe !important; |
471 | | - color: #1e293b !important; |
| 464 | + color: #0f172a !important; |
472 | 465 | border-radius: 0 !important; |
473 | 466 | } |
474 | 467 |
|
475 | 468 | .mfkContainer :global(.react-datepicker__day--in-selecting-range) { |
476 | 469 | background-color: #e6f0ff !important; |
477 | | - color: #1e293b !important; |
| 470 | + color: #0f172a !important; |
478 | 471 | border-radius: 0 !important; |
479 | 472 | } |
480 | 473 |
|
|
488 | 481 | } |
489 | 482 |
|
490 | 483 | .mfkContainer :global(.react-datepicker__day--outside-month) { |
491 | | - color: #9ca3af !important; |
| 484 | + color: #64748b !important; |
492 | 485 | } |
493 | 486 |
|
494 | 487 | .mfkContainer :global(.react-datepicker__day--disabled) { |
495 | | - color: #d1d5db !important; |
| 488 | + color: #cbd5e1 !important; |
496 | 489 | cursor: not-allowed !important; |
497 | 490 | } |
498 | 491 |
|
|
508 | 501 | } |
509 | 502 |
|
510 | 503 | .mfkContainer :global(.react-datepicker__navigation-icon::before) { |
511 | | - border-color: #4b5563 !important; |
| 504 | + border-color: #1e293b !important; |
512 | 505 | border-width: 2px 2px 0 0 !important; |
513 | 506 | height: 8px !important; |
514 | 507 | width: 8px !important; |
|
541 | 534 | display: none !important; |
542 | 535 | } |
543 | 536 |
|
544 | | -/* React-datepicker dark mode */ |
| 537 | +/* React-datepicker dark mode - improved contrast */ |
545 | 538 | .mfkContainer.darkMode :global(.react-datepicker) { |
546 | 539 | background-color: #0f172a !important; |
547 | 540 | border-color: #334155 !important; |
|
553 | 546 | } |
554 | 547 |
|
555 | 548 | .mfkContainer.darkMode :global(.react-datepicker__header) { |
556 | | - background-color: #1a2634 !important; |
| 549 | + background-color: #1e293b !important; |
557 | 550 | border-bottom-color: #334155 !important; |
558 | 551 | } |
559 | 552 |
|
560 | 553 | .mfkContainer.darkMode :global(.react-datepicker__current-month) { |
561 | | - color: #f1f5f9 !important; |
| 554 | + color: #f8fafc !important; |
562 | 555 | } |
563 | 556 |
|
564 | 557 | .mfkContainer.darkMode :global(.react-datepicker__day-name) { |
565 | | - color: #cbd5e1 !important; |
| 558 | + color: #e2e8f0 !important; |
566 | 559 | background-color: transparent !important; |
567 | 560 | } |
568 | 561 |
|
|
608 | 601 | } |
609 | 602 |
|
610 | 603 | .mfkContainer.darkMode :global(.react-datepicker__day--outside-month) { |
611 | | - color: #4b5563 !important; |
| 604 | + color: #64748b !important; |
612 | 605 | } |
613 | 606 |
|
614 | 607 | .mfkContainer.darkMode :global(.react-datepicker__day--disabled) { |
615 | | - color: #4b5563 !important; |
| 608 | + color: #4a5568 !important; |
616 | 609 | } |
617 | 610 |
|
618 | 611 | .mfkContainer.darkMode :global(.react-datepicker__navigation-icon::before) { |
619 | | - border-color: #9ca3af !important; |
| 612 | + border-color: #cbd5e1 !important; |
620 | 613 | } |
621 | 614 |
|
622 | 615 | .mfkContainer.darkMode :global(.react-datepicker__navigation:hover .react-datepicker__navigation-icon::before) { |
|
0 commit comments