-
Notifications
You must be signed in to change notification settings - Fork 8
/
DateTimePicker.css
135 lines (112 loc) · 2.68 KB
/
DateTimePicker.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
.react-datetime-picker {
display: inline-flex;
position: relative;
}
.react-datetime-picker,
.react-datetime-picker *,
.react-datetime-picker *:before,
.react-datetime-picker *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.react-datetime-picker--disabled {
background-color: #f0f0f0;
color: #6d6d6d;
}
.react-datetime-picker__wrapper {
display: flex;
flex-grow: 1;
flex-shrink: 0;
}
.react-datetime-picker__inputGroup {
min-width: calc(4px + (4px * 3) + 0.54em * 6 + 0.217em * 2);
flex-grow: 1;
padding: 0 2px;
}
.react-datetime-picker__inputGroup__divider {
padding: 1px 0;
white-space: pre;
}
.react-datetime-picker__inputGroup__divider,
.react-datetime-picker__inputGroup__leadingZero {
display: inline-block;
}
.react-datetime-picker__inputGroup__input {
min-width: 0.54em;
height: calc(100% - 2px);
position: relative;
padding: 1px;
border: 0;
background: none;
color: currentColor;
font: inherit;
box-sizing: content-box;
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
}
.react-datetime-picker__inputGroup__input::-webkit-outer-spin-button,
.react-datetime-picker__inputGroup__input::-webkit-inner-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;
}
.react-datetime-picker__inputGroup__input:invalid {
background: rgba(255, 0, 0, 0.1);
}
.react-datetime-picker__inputGroup__input--hasLeadingZero {
margin-left: -0.54em;
padding-left: calc(1px + 0.54em);
}
.react-datetime-picker__inputGroup__amPm {
font: inherit;
-webkit-appearance: menulist;
-moz-appearance: menulist;
appearance: menulist;
}
.react-datetime-picker__button {
border: 0;
background: transparent;
padding: 4px 6px;
stroke: white;
}
svg {
stroke: hsl(var(--bc));
}
.react-datetime-picker__button:enabled {
cursor: pointer;
}
.react-datetime-picker__button:enabled:hover .react-datetime-picker__button__icon,
.react-datetime-picker__button:enabled:focus .react-datetime-picker__button__icon {
stroke: #0078d7;
}
.react-datetime-picker__button:disabled .react-datetime-picker__button__icon {
stroke: #6d6d6d;
}
.react-datetime-picker__button svg {
display: inherit;
}
.react-datetime-picker__calendar,
.react-datetime-picker__clock {
z-index: 1;
}
.react-datetime-picker__calendar--closed,
.react-datetime-picker__clock--closed {
display: none;
}
.react-datetime-picker__calendar {
width: 350px;
max-width: 100vw;
}
.react-datetime-picker__calendar .react-calendar {
border-width: thin;
}
.react-datetime-picker__clock {
width: 200px;
height: 200px;
max-width: 100vw;
padding: 25px;
background-color: white;
}