|
1 | | -/* .react-datepicker * { |
2 | | - @apply yl-outline-none !important; |
| 1 | +.react-datepicker * { |
| 2 | + outline: none !important; |
3 | 3 | } |
4 | 4 |
|
5 | 5 | .react-datepicker-wrapper { |
6 | | - @apply yl-w-full !important; |
| 6 | + width: 100% !important; |
7 | 7 | } |
8 | 8 |
|
9 | 9 | .react-datepicker { |
10 | | - @apply yl-select-none yl-border-2 yl-border-border yl-bg-background yl-font-sans yl-shadow-lg !important; |
| 10 | + user-select: none !important; |
| 11 | + border: none !important; |
| 12 | + background-color: oklch(0.15 0 0) !important; |
| 13 | + font-family: ui-sans-serif, system-ui, sans-serif !important; |
| 14 | + box-shadow: |
| 15 | + 0 10px 15px -3px rgb(0 0 0 / 0.1), |
| 16 | + 0 4px 6px -4px rgb(0 0 0 / 0.1) !important; |
| 17 | + border-radius: 0.5rem !important; |
11 | 18 | } |
12 | 19 |
|
13 | 20 | .react-datepicker, |
14 | 21 | .react-datepicker__day { |
15 | | - @apply yl-text-text !important; |
| 22 | + color: oklch(90% 0.05 80) !important; |
16 | 23 | } |
17 | 24 |
|
18 | 25 | .react-datepicker__header { |
19 | | - @apply yl-border-0 yl-bg-background !important; |
| 26 | + border: 0 !important; |
| 27 | + background-color: oklch(0.15 0 0) !important; |
20 | 28 | } |
21 | 29 |
|
22 | 30 | .react-datepicker__current-month, |
23 | 31 | .react-datepicker__day-name, |
24 | 32 | .react-datepicker-time__header { |
25 | | - @apply yl-text-text !important; |
| 33 | + color: oklch(90% 0.05 80) !important; |
26 | 34 | } |
27 | 35 |
|
28 | 36 | .react-datepicker__month-container { |
29 | | - @apply yl-bg-background !important; |
| 37 | + background-color: oklch(0.15 0 0) !important; |
30 | 38 | } |
31 | 39 |
|
32 | 40 | .react-datepicker__day:not([aria-disabled="true"]):hover { |
33 | | - @apply yl-bg-primary yl-text-white !important; |
| 41 | + background-color: oklch(80% 0.2 80) !important; |
| 42 | + color: oklch(0.15 0 0) !important; |
34 | 43 | } |
35 | 44 |
|
36 | 45 | .react-datepicker__day--selected { |
37 | | - @apply yl-bg-primary yl-text-white !important; |
| 46 | + background-color: oklch(80% 0.2 80) !important; |
| 47 | + color: oklch(0.15 0 0) !important; |
38 | 48 | } |
39 | 49 |
|
40 | 50 | .react-datepicker__day--keyboard-selected { |
41 | | - @apply yl-bg-primary/70 yl-text-white !important; |
| 51 | + background-color: color-mix( |
| 52 | + in srgb, |
| 53 | + oklch(80% 0.2 80) 70%, |
| 54 | + transparent |
| 55 | + ) !important; |
| 56 | + color: oklch(0.15 0 0) !important; |
42 | 57 | } |
43 | 58 |
|
44 | 59 | .react-datepicker__day--keyboard-selected:focus-visible { |
45 | | - @apply yl-text-white yl-outline-border !important; |
| 60 | + color: oklch(0.15 0 0) !important; |
| 61 | + outline: 1px solid oklch(35% 0.04 80) !important; |
46 | 62 | } |
47 | 63 |
|
48 | 64 | .react-datepicker__time-container { |
49 | | - @apply yl-border-l-border/20 yl-px-0 !important; |
| 65 | + border-left: 2px solid color-mix(in srgb, oklch(35% 0.04 80) 20%, transparent) !important; |
50 | 66 | } |
51 | 67 |
|
52 | 68 | .react-datepicker__time-container .react-datepicker__time { |
53 | | - @apply yl-bg-background !important; |
| 69 | + background-color: oklch(0.15 0 0) !important; |
54 | 70 | } |
55 | 71 |
|
56 | 72 | .react-datepicker__time-box { |
57 | | - @apply yl-pl-1 !important; |
| 73 | + padding-left: 0.25rem !important; |
58 | 74 | } |
59 | 75 |
|
60 | 76 | .react-datepicker__time-list-item--selected { |
61 | | - @apply yl-bg-primary yl-font-normal yl-text-white !important; |
| 77 | + background-color: oklch(80% 0.2 80) !important; |
| 78 | + font-weight: 400 !important; |
| 79 | + color: oklch(0.15 0 0) !important; |
62 | 80 | } |
63 | 81 |
|
64 | | -li.react-datepicker__time-list-item { |
65 | | - @apply hover:yl-bg-primary hover:yl-text-white !important; |
| 82 | +li.react-datepicker__time-list-item:hover { |
| 83 | + background-color: oklch(80% 0.2 80) !important; |
| 84 | + color: oklch(0.15 0 0) !important; |
66 | 85 | } |
67 | 86 |
|
68 | 87 | .react-datepicker__time-list::-webkit-scrollbar { |
69 | 88 | width: 5px; |
70 | 89 | } |
71 | 90 |
|
72 | 91 | .react-datepicker__time-list::-webkit-scrollbar-track { |
73 | | - background: "##"; |
| 92 | + background: oklch(0.15 0 0); |
74 | 93 | } |
75 | 94 |
|
76 | 95 | .react-datepicker__time-list::-webkit-scrollbar-thumb { |
77 | | - background: rgb(var(--text-color)); |
| 96 | + background: oklch(35% 0.04 80); |
78 | 97 | } |
79 | 98 |
|
80 | 99 | .react-datepicker__time-list::-webkit-scrollbar-thumb:hover { |
81 | | - background: rgb(var(--text-color)); |
| 100 | + background: oklch(55% 0.07 80); |
82 | 101 | } |
83 | 102 |
|
84 | 103 | .react-datepicker__input-container input { |
85 | | - @apply yl-w-full yl-min-w-max yl-appearance-none yl-rounded-md yl-border-2 yl-border-border yl-bg-transparent yl-p-2 yl-text-text hover:yl-cursor-pointer hover:yl-border-border focus:yl-border-border focus:yl-outline-none focus:yl-ring-transparent !important; |
| 104 | + width: 100% !important; |
| 105 | + min-width: max-content !important; |
| 106 | + appearance: none !important; |
| 107 | + border-radius: 0.375rem !important; |
| 108 | + border: 2px solid oklch(35% 0.04 80) !important; |
| 109 | + background-color: transparent !important; |
| 110 | + padding: 0.5rem !important; |
| 111 | + color: oklch(90% 0.05 80) !important; |
| 112 | + outline: none !important; |
| 113 | + transition: border-color 0.15s ease-in-out !important; |
| 114 | +} |
| 115 | + |
| 116 | +.react-datepicker__input-container input:hover { |
| 117 | + cursor: pointer !important; |
| 118 | +} |
| 119 | + |
| 120 | +.react-datepicker__input-container input:focus { |
| 121 | + box-shadow: none !important; |
86 | 122 | } |
87 | 123 |
|
88 | 124 | .react-datepicker__day--disabled { |
89 | | - @apply yl-cursor-not-allowed yl-text-text/40 !important; |
90 | | -} */ |
| 125 | + cursor: not-allowed !important; |
| 126 | + color: oklch(55% 0.07 80) !important; |
| 127 | +} |
| 128 | + |
| 129 | +.react-datepicker__navigation { |
| 130 | + color: oklch(90% 0.05 80) !important; |
| 131 | + transition: color 0.15s ease-in-out !important; |
| 132 | +} |
| 133 | + |
| 134 | +.react-datepicker__navigation:hover { |
| 135 | + color: oklch(80% 0.2 80) !important; |
| 136 | +} |
| 137 | + |
| 138 | +.react-datepicker__navigation--previous:hover { |
| 139 | + border-right-color: oklch(80% 0.2 80) !important; |
| 140 | +} |
| 141 | + |
| 142 | +.react-datepicker__day--outside-month { |
| 143 | + color: oklch(55% 0.07 80) !important; |
| 144 | +} |
| 145 | + |
| 146 | +.react-datepicker__day--today { |
| 147 | + background-color: color-mix( |
| 148 | + in srgb, |
| 149 | + oklch(75% 0.24 90) 20%, |
| 150 | + transparent |
| 151 | + ) !important; |
| 152 | + font-weight: 600 !important; |
| 153 | +} |
0 commit comments