forked from evandhq/react-persian-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
basic.css
156 lines (134 loc) · 2.82 KB
/
basic.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
.calendarContainer {
border-radius: 3px;
box-shadow: 0 3px 10px #dbdbdb;
border: 1px solid #cccccc;
width: 300px;
margin: auto;
text-align: center;
padding: 10px;
background-color: #fff;
}
.calendarContainer * {
box-sizing: border-box;
}
.calendarContainer .dayPickerContainer:after,
.calendarContainer .monthsList:after,
.calendarContainer .daysOfWeek:after {
content: '';
display: block;
clear: both;
}
/* Heading */
.calendarContainer .heading {
height: 42px;
font-weight: bold;
margin-bottom: 10px;
}
.calendarContainer .heading > button {
border-radius: 3px;
background: none;
margin: 5px 0;
border: 1px solid #F7F7F7;
text-align: center;
line-height: 30px;
width: 36px;
height: 32px;
cursor: pointer;
}
.calendarContainer .heading > button:hover {
background-color: #f2f2f2;
}
.calendarContainer .heading > span {
line-height: 35px;
}
.calendarContainer .heading svg {
width: 10px;
}
.calendarContainer .heading .prev {
float: right;
}
.calendarContainer .heading .next {
float: left;
}
.calendarContainer .heading .title {
line-height: 32px;
width: 120px;
height: 32px;
font-size: 1em;
margin: 5px 0;
border: 1px solid #F7F7F7;
text-align: center;
display: inline-block;
font-weight: normal;
}
/* Day wrapper styles */
.calendarContainer .dayWrapper {
padding: 5;
float: right;
width: 14.28571429%;
}
/* Day wrapper button styles */
.calendarContainer .dayWrapper button {
border: none;
background: none;
outline: none;
width: 100%;
height: 36px;
border-radius: 3px;
cursor: pointer;
}
.calendarContainer .dayWrapper button:hover {
background-color: #eeeeff;
}
.calendarContainer .dayWrapper button[disabled] {
color: #aaa;
cursor: not-allowed;
background-color: #ebebeb;
}
.calendarContainer .dayWrapper button.selected {
background-color: #337ab7;
color: #ffffff;
}
.calendarContainer .dayWrapper:not(.currentMonth) button {
opacity: .5;
}
/* Days of week row */
.calendarContainer .daysOfWeek {
border-bottom: 1px solid #EEE;
margin-bottom: 5px;
padding-bottom: 5px;
display: flex;
width: 100%;
}
.calendarContainer .daysOfWeek > div {
flex-grow: 1;
justify-content: space-between;
}
/* Month selector portion */
.calendarContainer .monthsList {
clear: both;
width: 100%;
}
.calendarContainer .monthsList button {
width: 33.33333332%;
height: 25%;
float: right;
border: 1px solid #F9F9F9;
outline: none;
font-size: 1em;
background: #fff;
padding: 10px 0;
cursor: pointer;
}
.calendarContainer .monthsList button:hover {
background: #eeeeee;
cursor: pointer;
}
/* Selected state of buttons */
.calendarContainer .selected button,
.calendarContainer .selected button:hover,
.calendarContainer .selected button:active,
.calendarContainer .selected button:focus {
background-color: #337ab7;
color: #ffffff;
}