-
-
Notifications
You must be signed in to change notification settings - Fork 735
/
style.css
301 lines (246 loc) · 8.48 KB
/
style.css
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
/* Variables declaration */
/* prettier-ignore */
.rdp-root {
--rdp-accent-color: blue; /* The accent color used for selected days and UI elements. */
--rdp-accent-background-color: #f0f0ff; /* The accent background color used for selected days and UI elements. */
--rdp-font-family: system-ui; /* The font family used by the calendar. Note that `inherit`does not work here. */
--rdp-day-font: inherit; /* The font used for the day cells. */
--rdp-day-height: 2.75rem; /* The height of the day cells. */
--rdp-day-width: 2.75rem; /* The width of the day cells. */
--rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
--rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
--rdp-day_button-height: var(--rdp-day-width); /* The height of the day cells. */
--rdp-day_button-width: var(--rdp-day-height); /* The width of the day cells. */
--rdp-selected-border: 2px solid var(--rdp-accent-color); /* The border of the selected days. */
--rdp-selected-font: bold large var(--rdp-font-family); /* The font of the selected days. */
--rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
--rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
--rdp-today-color: var(--rdp-accent-color); /* The color of the today's date. */
--rdp-dropdown-gap: 0.5rem;/* The gap between the dropdowns used in the month captons. */
--rdp-month_caption-font: bold larger var(--rdp-font-family); /* The font of the month caption. */
--rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */
--rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
--rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
--rdp-nav_button-width: 2.25rem; /* The width of the navigation buttons. */
--rdp-nav-height: 2.75rem; /* The height of the navigation bar. */
--rdp-range_middle-background-color: var(--rdp-accent-background-color); /* The color of the background for days in the middle of a range. */
--rdp-range_middle-font: normal medium var(--rdp-font-family); /* The font for days in the middle of a range. */
--rdp-range_middle-foreground-color: white; /* The font for days in the middle of a range. */
--rdp-range_middle-color: inherit;/* The color of the range text. */
--rdp-range_start-color: white; /* The color of the range text. */
--rdp-range_start-background: linear-gradient(var(--rdp-gradient-direction), transparent 50%, var(--rdp-range_middle-background-color) 50%); /* Used for the background of the start of the selected range. */
--rdp-range_start-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the start of the selected range. */
--rdp-range_end-background: linear-gradient(var(--rdp-gradient-direction), var(--rdp-range_middle-background-color) 50%, transparent 50%); /* Used for the background of the end of the selected range. */
--rdp-range_end-color: white;/* The color of the range text. */
--rdp-range_end-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the end of the selected range. */
--rdp-week_number-border-radius: 100%; /* The border radius of the week number. */
--rdp-week_number-border: 2px solid transparent; /* The border of the week number. */
--rdp-week_number-font: 400 small var(--rdp-font-family); /* The font of the week number cells. */
--rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
--rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
--rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */
--rdp-weekday-font: 500 smaller var(--rdp-font-family); /* The font of the weekday. */
--rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
--rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
--rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */
--rdp-gradient-direction: 90deg;
}
.rdp-root[dir="rtl"] {
--rdp-gradient-direction: -90deg;
}
/* Root of the component. */
.rdp-root {
position: relative; /* Required to position the navigation toolbar. */
box-sizing: border-box;
}
.rdp-root * {
box-sizing: border-box;
}
/* Reset buttons */
.rdp-root button {
border: none;
background: none;
padding: 0;
margin: 0;
cursor: pointer;
font: inherit;
color: inherit;
}
.rdp-day {
width: var(--rdp-day-width);
height: var(--rdp-day-height);
font: var(--rdp-day-font);
}
.rdp-day_button {
justify-content: center;
align-items: center;
display: flex;
width: var(--rdp-day_button-width);
height: var(--rdp-day_button-height);
border: var(--rdp-day_button-border);
border-radius: var(--rdp-day_button-border-radius);
}
.rdp-day_button:disabled {
cursor: revert;
}
.rdp-caption_label {
z-index: 1;
position: relative;
display: inline-flex;
align-items: center;
white-space: nowrap;
border: 0;
}
.rdp-button_next,
.rdp-button_previous {
-moz-appearance: none;
-webkit-appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 0;
position: relative;
font: inherit;
appearance: none;
background: none;
border: 0;
color: inherit;
cursor: pointer;
width: var(--rdp-nav_button-width);
height: var(--rdp-nav_button-height);
}
.rdp-button_next:disabled,
.rdp-button_previous:disabled {
cursor: revert;
opacity: var(--rdp-nav_button-disabled-opacity);
}
.rdp-chevron {
display: inline-block;
fill: var(--rdp-accent-color);
}
.rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
transform: rotate(180deg);
}
.rdp-root[dir="rtl"] .rdp-nav .rdp-chevron {
transform: rotate(180deg);
transform-origin: 50%;
}
.rdp-dropdowns {
position: relative;
display: inline-flex;
align-items: center;
gap: var(--rdp-dropdown-gap);
}
.rdp-dropdown {
z-index: 2; /* Remove ? */
/* Reset */
appearance: none;
position: absolute;
inset-block-start: 0;
inset-block-end: 0;
inset-inline-start: 0;
width: 100%;
margin: 0;
padding: 0;
cursor: inherit;
color: transparent;
border: none;
background-color: transparent;
line-height: inherit;
}
.rdp-dropdown_root {
position: relative;
display: inline-flex;
align-items: center;
}
.rdp-dropdown_root[data-disabled="true"] .rdp-chevron {
opacity: var(--rdp-disabled-opacity);
}
.rdp-month_caption {
display: flex;
align-content: center;
height: var(--rdp-nav-height);
font: var(--rdp-month_caption-font);
}
.rdp-months {
position: relative;
display: flex;
flex-wrap: wrap;
gap: var(--rdp-months-gap);
max-width: fit-content;
}
.rdp-nav {
position: absolute;
inset-block-start: 0;
inset-inline-end: 0;
display: flex;
align-items: center;
height: var(--rdp-nav-height);
}
.rdp-weekday {
opacity: var(--rdp-weekday-opacity);
padding: var(--rdp-weekday-padding);
font: var(--rdp-weekday-font);
text-align: var(--rdp-weekday-text-align);
text-transform: var(--rdp-weekday-text-transform);
}
.rdp-week_number {
opacity: var(--rdp-week_number-opacity);
font: var(--rdp-week_number-font);
height: var(--rdp-week_number-height);
width: var(--rdp-week_number-width);
border: var(--rdp-week_number-border);
border-radius: var(--rdp-week_number-border-radius);
}
.rdp-week_number_interactive {
cursor: pointer;
}
/* DAY MODIFIERS */
.rdp-today:not(.rdp-outside) {
color: var(--rdp-today-color);
}
.rdp-selected {
font: var(--rdp-selected-font);
}
.rdp-selected .rdp-day_button {
border: var(--rdp-selected-border);
}
.rdp-outside {
opacity: var(--rdp-outside-opacity);
}
.rdp-disabled {
opacity: var(--rdp-disabled-opacity);
}
.rdp-hidden {
visibility: hidden;
color: var(end-range_start-color);
}
.rdp-range_start {
background: var(--rdp-range_start-background);
}
.rdp-range_start .rdp-day_button {
background-color: var(--rdp-range_start-date-background-color);
color: var(--rdp-range_start-color);
}
.rdp-range_middle {
background-color: var(--rdp-range_middle-background-color);
font: var(--rdp-range_middle-font);
}
.rdp-range_middle .rdp-day_button {
border-color: transparent;
border: unset;
border-radius: unset;
color: var(--rdp-range_middle-color);
}
.rdp-range_end {
background: var(--rdp-range_end-background);
color: var(--rdp-range_end-color);
}
.rdp-range_end .rdp-day_button {
color: var(--rdp-range_start-color);
background-color: var(--rdp-range_end-date-background-color);
}
.rdp-focusable {
cursor: pointer;
}