forked from BidTheatre/react-dates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalendarMonth.scss
138 lines (114 loc) · 2.58 KB
/
CalendarMonth.scss
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
@import "variables";
.CalendarMonth {
text-align: center;
padding: 0 13px;
vertical-align: top;
&:first-of-type {
position: absolute;
z-index: -1;
opacity: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
}
.CalendarMonth--horizontal {
display: inline-block;
min-height: 100%;
}
.CalendarMonth--vertical {
display: block;
}
.CalendarMonth__caption {
color: $color-dark-gray;
margin-top: 7px;
font-size: 18px;
padding: 15px 0 35px;
// necessary to not hide borders in FF
margin-bottom: 2px;
}
// This order is important.
.CalendarMonth__day {
border: 1px solid lighten($border-light, 3);
padding: 0;
box-sizing: border-box;
color: $color-dark;
cursor: pointer;
width: 39px;
height: 38px;
&:active {
background: darken($color-white, 5%);
}
}
.CalendarMonth__day--outside {
border: 0;
cursor: default;
&:active {
background: $color-white;
}
}
.CalendarMonth__day--hovered {
background: lighten($border-light, 3);
border: 1px double darken($border-light, 3);
color: inherit;
}
.CalendarMonth__day--blocked-minimum-nights {
color: $color-light-gray;
background: $color-white;
border: 1px solid lighten($border-light, 3);
cursor: default;
&:active {
background: $color-white;
}
}
.CalendarMonth__day--selected-span {
background: $babu-shade-4;
border: 1px double $babu-shade-2;
color: $color-white;
&.CalendarMonth__day--hovered,
&:active {
background: $babu-shade-2;
border: 1px double $color-babu;
}
&.CalendarMonth__day--last-in-range {
border-right: $color-babu;
}
}
.DateRangePicker__picker--valid-date-hovered {
.CalendarMonth__day--hovered-span,
.CalendarMonth__day--after-hovered-start {
background: $babu-shade-7;
border: 1px double $babu-shade-5;
color: $color-kazan;
}
}
.DateRangePicker__picker--valid-date-hovered .CalendarMonth__day--selected-start,
.DateRangePicker__picker--valid-date-hovered .CalendarMonth__day--selected-end,
.CalendarMonth__day--selected-start,
.CalendarMonth__day--selected-end,
.CalendarMonth__day--selected {
background: $color-babu;
border: 1px double $color-babu;
color: $color-white;
&:active {
background: $color-babu;
}
}
.CalendarMonth__day--blocked-calendar {
background: $color-light-gray;
color: $color-gray;
cursor: default;
&:active {
background: $color-light-gray;
}
}
.CalendarMonth__day--blocked-past-date {
color: $color-light-gray;
background: $color-white;
border: 1px solid lighten($border-light, 3);
cursor: default;
&:active {
background: $color-white;
}
}