-
Notifications
You must be signed in to change notification settings - Fork 0
/
datepicker.css
133 lines (110 loc) · 2.2 KB
/
datepicker.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
datepicker * {
box-sizing: border-box;
}
datepicker {
max-width: 420px;
width: 100%;
display: inline-block;
position: relative;
}
.datepicker-container {
border: 1px solid #dddddd;
border-radius: 6px;
box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
padding: 10px 0;
width: 100%;
display: none;
background-color: #fff;
position: absolute;
z-index: 99;
max-width: 350px;
}
.dp-month {
display: flex;
flex-direction: column;
}
.dp-weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
align-items: center;
padding: 0 2px;
}
.dp-weekdays > span {
text-align: center;
margin: 0;
font-size: 14px;
font-weight: bold;
padding: 6px 0;
}
.dp-days-of-month {
width: 100%;
margin: 0;
display: grid;
grid-template-columns: repeat(7, 1fr);
padding: 2px;
}
.dp-days-of-month > span {
text-align: center;
display: inline-block;
border: 2px solid #fff;
}
.dp-days-of-month > span:hover {
cursor: pointer;
border: 2px solid #DADADA;
}
.dp-days-of-month > span:not(:hover) {
border-bottom: 2px solid #fff;
}
.dp-days-of-month > span[next-month],
.dp-days-of-month > span[previous-month] {
/*background-color: #F1F5FA;*/
opacity: 0.5;
}
.dp-days-of-month span[today] {
color: #ff5722;
}
.dp-days-of-month > span[selected] {
border: 2px solid #A8A9AD;
}
.dp-controller {
display: flex;
padding: 10px 20px;
justify-content: space-between;
}
.dp-controller > div {
flex-shrink: 1;
flex-grow: 1;
display: flex;
justify-content: center;
gap: 12px;
}
.dp-controller button {
padding: 7px 14px;
font-size: 20px;
border: none;
background: #e8e8e8;
border-radius: 4px;
cursor: pointer;
outline: none;
}
.dp-controller-btn {
margin: 0 auto;
}
.dp-month-list,
.dp-year-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
justify-content: space-between;
align-items: center;
}
.dp-month-list > span:hover,
.dp-year-list > span:hover {
background-color: #E8E8EA;
border-radius: 4px;
}
.dp-month-list > span,
.dp-year-list > span {
margin: 10px;
padding: 10px 0;
text-align: center;
}