Skip to content

Commit c5bf2f3

Browse files
committed
improvement(reskin): calendar picker - part 1 f2f
1 parent f4f290e commit c5bf2f3

File tree

1 file changed

+39
-29
lines changed

1 file changed

+39
-29
lines changed

src/shared/components/DateRangePicker/style.scss

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,18 @@
2121

2222
.isRange {
2323
:global {
24-
.rdrStartEdge,
25-
.rdrEndEdge {
26-
color: $listing-checkbox-green !important;
27-
}
28-
2924
.rdrDayHovered {
30-
background: $listing-checkbox-green !important;
25+
color: #fff !important;
3126
}
3227

3328
.rdrDay {
3429
.rdrInRange {
35-
background: lighten($listing-checkbox-green, 30%) !important;
30+
background: #e7f2ef !important;
3631
}
3732

3833
.rdrStartEdge,
3934
.rdrEndEdge {
40-
background: lighten($listing-checkbox-green, 30%) !important;
35+
background: #e7f2ef !important;
4136
}
4237
}
4338
}
@@ -62,6 +57,10 @@
6257
color: $tc-black;
6358

6459
:global {
60+
.rdrMonth {
61+
padding: 0 !important;
62+
}
63+
6564
@include phone {
6665
.rdrDateRangePickerWrapper {
6766
position: relative;
@@ -91,6 +90,10 @@
9190
}
9291

9392
.rdrMonths {
93+
.rdrMonth {
94+
padding: 0 !important;
95+
}
96+
9497
.rdrWeekDay {
9598
font-size: 15px;
9699
margin-bottom: 10px;
@@ -136,7 +139,15 @@
136139
}
137140

138141
select {
139-
font-weight: 700;
142+
option {
143+
font-weight: 700;
144+
background: #fff;
145+
border-radius: 4px;
146+
border: 1px solid #aaa;
147+
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.12);
148+
width: 131px;
149+
padding: 8px 0;
150+
}
140151
}
141152
}
142153

@@ -227,10 +238,6 @@
227238
.rdrDayEndPreview {
228239
display: block;
229240
}
230-
231-
.rdrInRange ~ .rdrDayNumber span {
232-
opacity: 0.5;
233-
}
234241
}
235242

236243
.rdrDayEndOfMonth .rdrInRange,
@@ -276,7 +283,6 @@
276283
margin-bottom: 6px;
277284

278285
.rdrInRange {
279-
color: transparent;
280286
background: transparent;
281287

282288
& ~ .rdrDayNumber span {
@@ -298,13 +304,15 @@
298304
border-left: none;
299305
}
300306

301-
.rdrDayStartPreview.rdrDayEndPreview,
307+
.rdrDayStartPreview,
308+
.rdrDayEndPreview,
302309
.rdrDayHovered {
303310
border-radius: 50%;
304311
width: 36px;
305312
height: 36px;
306313
left: 4px;
307314
border-color: transparent;
315+
background-color: #09b286 !important;
308316
}
309317

310318
.rdrSelected,
@@ -319,15 +327,17 @@
319327
.rdrDayInPreview,
320328
.rdrDayStartPreview,
321329
.rdrDayEndPreview {
322-
border-color: lighten($listing-checkbox-green, 70%);
330+
border: none;
323331
top: 0;
324332
bottom: 0;
333+
left: 5px;
325334
}
326335

327336
.rdrDayStartPreview,
328337
.rdrDayEndPreview {
329338
& ~ .rdrDayNumber span {
330-
color: $tc-white;
339+
color: $tc-white !important;
340+
z-index: 100;
331341
}
332342
}
333343

@@ -421,15 +431,20 @@
421431
@include roboto-bold;
422432

423433
width: 71px;
424-
height: 24px;
425-
line-height: 22px;
426-
margin: 9px 4px 16px;
427-
padding: 0;
428-
font-size: 10.5px;
434+
margin: 16px 16px 16px 0;
435+
padding: 0 16px;
436+
font-size: 12px;
437+
line-height: 24px;
438+
letter-spacing: 0.8px;
439+
color: #137d60;
429440
text-align: center;
430441
background: transparent;
431-
border: 1px solid #ccc;
432-
border-radius: 2px;
442+
border: 1.5px solid #137d60;
443+
border-radius: 24px;
444+
display: flex;
445+
align-self: flex-start;
446+
text-transform: uppercase;
447+
height: 26px;
433448

434449
@include phone {
435450
width: 79px;
@@ -460,11 +475,6 @@
460475
}
461476

462477
.endDate {
463-
.calendar-container,
464-
.calendar-inner-container {
465-
right: 0;
466-
}
467-
468478
@include tablet {
469479
.calendar-container,
470480
.calendar-inner-container {

0 commit comments

Comments
 (0)