forked from arqex/react-datetime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-datetime.css
109 lines (92 loc) · 1.43 KB
/
react-datetime.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
.rdt {
display: inline-block;
}
.rdtOpen .rdtPicker {
display: block;
position: absolute;
width: 300px;
z-index: 9999;
}
@media only screen and (max-width: 480px) {
.rdtOpen .rdtPicker {
position: fixed;
width: 100%;
max-width: 600px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.rdtPicker {
display: none;
background: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.rdtPicker table {
border-spacing: 0;
border: 0;
border: none;
}
.dow {
text-align: center;
}
.rdtPrev,
.rdtNext,
.rdtSwitch,
.rdtDay,
.rdtMonth,
.rdtYear {
cursor: pointer;
text-align: center;
}
.rdtDays,
.rdtYears {
display: flex;
flex-direction: row;
height: 300px;
}
.rdtMonths {
display: flex;
flex-direction: column;
height: 300px;
}
.rdtMonths table,
.rdtYears table {
width: 100%;
height: 100%;
}
.rdtDays table {
width: 80%;
height: 100%;
}
.rdtDays.rdtNoTime table {
width: 100%;
height: 100%;
}
.rdtYears table thead tr,
.rdtMonths table thead tr,
.rdtDays table thead tr {
height: 40px;
line-height: 40px;
}
.rdtYears table thead th,
.rdtMonths table thead th,
.rdtDays table thead th {
vertical-align: middle;
}
.time-selector-container {
width: 20%;
overflow: scroll;
}
.time-selector-times {
margin: 0;
padding: 0;
width: 100%;
overflow: scroll;
list-style-type: none;
}
.time-selector-time {
cursor: pointer;
padding: 4px 0;
text-align: center;
}