|
90 | 90 | } |
91 | 91 |
|
92 | 92 | :global(.rbc-off-range-bg) { |
93 | | - background-color: #fafafa !important; /* Slightly different for off-range */ |
| 93 | + background-color: #fafafa; /* Slightly different for off-range */ |
94 | 94 | } |
95 | 95 |
|
96 | 96 | /* Content layer (dates + events) */ |
|
111 | 111 | width: 100%; |
112 | 112 | } |
113 | 113 |
|
| 114 | +:global(.rbc-row-content > .rbc-row):has(:global(.rbc-show-more)) { |
| 115 | + margin-top: auto; |
| 116 | +} |
| 117 | + |
114 | 118 | :global(.rbc-event-content) { |
115 | 119 | padding: 1px 1px; |
116 | 120 | } |
|
133 | 137 | font: inherit; |
134 | 138 | } |
135 | 139 |
|
| 140 | +:global(.rbc-date-cell):first-child:not(.rbc-now) :global(.rbc-button-link) { |
| 141 | + color: #ef4444; |
| 142 | +} |
| 143 | + |
136 | 144 | /* Today's date styling */ |
137 | 145 | :global(.rbc-today) { |
138 | 146 | background-color: transparent !important; |
|
168 | 176 |
|
169 | 177 | :global(.rbc-row-segment) { |
170 | 178 | position: relative; |
| 179 | + box-sizing: border-box; |
| 180 | + padding: 0; |
171 | 181 | } |
172 | 182 |
|
| 183 | +/* :global(.rbc-row-segment):not(:first-child) { |
| 184 | + padding-left: 5px; |
| 185 | +} */ |
| 186 | +/* :global(.rbc-row-segment):first-child { |
| 187 | + padding-left: 0; |
| 188 | +} */ |
| 189 | + |
173 | 190 | /* Show more link */ |
174 | 191 | :global(.rbc-show-more) { |
175 | 192 | background-color: transparent; |
|
189 | 206 | } |
190 | 207 |
|
191 | 208 | @media (max-width: 576px) { |
| 209 | + :global(.rbc-row-bg) { |
| 210 | + gap: 2px; |
| 211 | + } |
| 212 | + :global(.rbc-off-range-bg) { |
| 213 | + background-color: #ffffff; |
| 214 | + } |
192 | 215 | :global(.rbc-day-bg) { |
193 | | - border: 1px solid #ffffff; |
194 | | - border-radius: 3px; |
| 216 | + background-color: #ffffff; |
| 217 | + /* border: 1px solid #ffffff; */ |
| 218 | + box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.1); |
| 219 | + border-radius: 5px; |
| 220 | + } |
| 221 | + :global(.rbc-button-link) { |
| 222 | + opacity: 50%; |
| 223 | + } |
| 224 | + :global(.rbc-now .rbc-button-link) { |
| 225 | + background-color: transparent; |
| 226 | + color: inherit; |
| 227 | + width: auto; |
| 228 | + height: auto; |
| 229 | + display: inline; |
| 230 | + border-radius: 0; |
| 231 | + opacity: 100%; |
| 232 | + } |
| 233 | + :global(.rbc-date-cell.rbc-off-range .rbc-button-link) { |
| 234 | + display: none; |
| 235 | + } |
| 236 | + :global(.rbc-event) { |
| 237 | + padding: 0; |
195 | 238 | } |
196 | 239 | :global(.rbc-event-content) { |
197 | 240 | padding: 0; |
198 | 241 | } |
199 | 242 | :global(.rbc-month-row) { |
200 | 243 | min-height: 110px; |
201 | | - border: 0.5px solid #ffffff; |
| 244 | + /* border: 0.5px solid #ffffff; */ |
| 245 | + gap: 2px; |
| 246 | + } |
| 247 | + :global(.rbc-show-more) { |
| 248 | + opacity: 100%; |
| 249 | + } |
| 250 | + |
| 251 | + :global(.rbc-day-bg) { |
| 252 | + border-left: 0px; |
202 | 253 | } |
203 | 254 |
|
204 | 255 | .main { |
205 | | - padding-left: 0px; |
206 | | - padding-right: 0px; |
| 256 | + padding-left: 10px; |
| 257 | + padding-right: 10px; |
207 | 258 | padding-bottom: calc(2rem + env(safe-area-inset-bottom)); |
208 | 259 | touch-action: pan-y; /* drop horizontal finger drag */ |
209 | 260 | overscroll-behavior-x: none; /* block horizontal overscroll chaining */ |
|
0 commit comments