@@ -4,8 +4,9 @@ div.dt-datetime {
4
4
z-index : 2050 ;
5
5
border : 1px solid # ccc ;
6
6
box-shadow : 0 5px 15px -5px rgba (0 , 0 , 0 , 0.5 );
7
- padding : 0 20 px 6px 20px ;
7
+ padding : 6px 20px ;
8
8
width : 275px ;
9
+ border-radius : 5px ;
9
10
}
10
11
div .dt-datetime .inline {
11
12
position : relative;
@@ -155,30 +156,25 @@ div.dt-datetime div.dt-datetime-time div.dt-datetime-timeblock {
155
156
vertical-align : middle;
156
157
}
157
158
div .dt-datetime div .dt-datetime-iconLeft ,
158
- div .dt-datetime div .dt-datetime-iconRight ,
159
- div .dt-datetime div .dt-datetime-iconUp ,
160
- div .dt-datetime div .dt-datetime-iconDown {
159
+ div .dt-datetime div .dt-datetime-iconRight {
161
160
width : 30px ;
162
161
height : 30px ;
163
162
background-position : center;
164
163
background-repeat : no-repeat;
165
164
opacity : 0.3 ;
166
165
overflow : hidden;
167
166
box-sizing : border-box;
167
+ border : 1px solid transparent;
168
168
}
169
169
div .dt-datetime div .dt-datetime-iconLeft : hover ,
170
- div .dt-datetime div .dt-datetime-iconRight : hover ,
171
- div .dt-datetime div .dt-datetime-iconUp : hover ,
172
- div .dt-datetime div .dt-datetime-iconDown : hover {
170
+ div .dt-datetime div .dt-datetime-iconRight : hover {
173
171
border : 1px solid # ccc ;
174
172
border-radius : 2px ;
175
173
background-color : # f0f0f0 ;
176
174
opacity : 0.6 ;
177
175
}
178
176
div .dt-datetime div .dt-datetime-iconLeft button ,
179
- div .dt-datetime div .dt-datetime-iconRight button ,
180
- div .dt-datetime div .dt-datetime-iconUp button ,
181
- div .dt-datetime div .dt-datetime-iconDown button {
177
+ div .dt-datetime div .dt-datetime-iconRight button {
182
178
border : none;
183
179
background : transparent;
184
180
text-indent : 30px ;
@@ -190,21 +186,39 @@ div.dt-datetime div.dt-datetime-iconLeft {
190
186
position : absolute;
191
187
top : 5px ;
192
188
left : 5px ;
193
- background-image : url ("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==" );
189
+ }
190
+ div .dt-datetime div .dt-datetime-iconLeft button {
191
+ position : relative;
192
+ z-index : 1 ;
193
+ }
194
+ div .dt-datetime div .dt-datetime-iconLeft : after {
195
+ position : absolute;
196
+ top : 7px ;
197
+ left : 10px ;
198
+ display : block;
199
+ content : "" ;
200
+ border-top : 7px solid transparent;
201
+ border-right : 7px solid black;
202
+ border-bottom : 7px solid transparent;
194
203
}
195
204
div .dt-datetime div .dt-datetime-iconRight {
196
205
position : absolute;
197
206
top : 5px ;
198
207
right : 5px ;
199
- background-image : url ("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=" );
200
208
}
201
- div .dt-datetime div .dt-datetime-iconUp {
202
- height : 20 px ;
203
- background-image : url ( "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAALCAMAAABf9c24AAAAFVBMVEX///99fX1+fn57e3t6enoAAAAAAAC73bqPAAAABnRSTlMAYmJkZt92bnysAAAAL0lEQVR4AWOgJmBhxCvLyopHnpmVjY2VCadeoCxIHrcsWJ4RlyxCHlMWCTBRJxwAjrIBDMWSiM0AAAAASUVORK5CYII=" ) ;
209
+ div .dt-datetime div .dt-datetime-iconRight button {
210
+ position : relative ;
211
+ z-index : 1 ;
204
212
}
205
- div .dt-datetime div .dt-datetime-iconDown {
206
- height : 20px ;
207
- background-image : url ("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAALCAMAAABf9c24AAAAFVBMVEX///99fX1+fn57e3t6enoAAAAAAAC73bqPAAAABnRSTlMAYmJkZt92bnysAAAAMElEQVR4AWOgDmBiRQIsmPKMrGxQgJDFlEfIYpoPk8Utz8qM232MYFfhkQfKUg8AANefAQxecJ58AAAAAElFTkSuQmCC" );
213
+ div .dt-datetime div .dt-datetime-iconRight : after {
214
+ position : absolute;
215
+ top : 7px ;
216
+ left : 12px ;
217
+ display : block;
218
+ content : "" ;
219
+ border-top : 7px solid transparent;
220
+ border-left : 7px solid black;
221
+ border-bottom : 7px solid transparent;
208
222
}
209
223
210
224
div .dt-datetime-error {
@@ -215,4 +229,58 @@ div.dt-datetime-error {
215
229
line-height : 1.25em ;
216
230
text-align : center;
217
231
color : # b11f1f ;
232
+ }
233
+
234
+ html .dark div .dt-datetime {
235
+ border : 1px solid # 595b5e ;
236
+ background-color : # 212529 ;
237
+ box-shadow : 3px 4px 10px 1px rgba (0 , 0 , 0 , 0.8 );
238
+ }
239
+ html .dark div .dt-datetime table th {
240
+ color : # ccc ;
241
+ }
242
+ html .dark div .dt-datetime table td {
243
+ color : # eee ;
244
+ }
245
+ html .dark div .dt-datetime table td .selectable {
246
+ background : # 373c41 ;
247
+ }
248
+ html .dark div .dt-datetime table td .selectable .disabled {
249
+ color : # aaa ;
250
+ background : # 171b1f ;
251
+ }
252
+ html .dark div .dt-datetime table td .selectable .disabled button : hover {
253
+ color : # aaa ;
254
+ background : # 171b1f ;
255
+ }
256
+ html .dark div .dt-datetime table td .selectable .now {
257
+ background-color : # ddd ;
258
+ }
259
+ html .dark div .dt-datetime table td .selectable .selected button {
260
+ background : # 6ea8fe ;
261
+ color : black;
262
+ }
263
+ html .dark div .dt-datetime table td .selectable button : hover {
264
+ background : # ff8000 ;
265
+ color : black;
266
+ }
267
+ html .dark div .dt-datetime div .dt-datetime-label : hover {
268
+ border : 1px solid transparent;
269
+ background-color : rgba (255 , 255 , 255 , 0.1 );
270
+ }
271
+ html .dark div .dt-datetime div .dt-datetime-iconLeft : hover ,
272
+ html .dark div .dt-datetime div .dt-datetime-iconRight : hover ,
273
+ html .dark div .dt-datetime div .dt-datetime-iconUp : hover ,
274
+ html .dark div .dt-datetime div .dt-datetime-iconDown : hover {
275
+ border : 1px solid transparent;
276
+ background-color : rgba (255 , 255 , 255 , 0.1 );
277
+ }
278
+ html .dark div .dt-datetime div .dt-datetime-iconLeft : after {
279
+ border-right-color : white;
280
+ }
281
+ html .dark div .dt-datetime div .dt-datetime-iconRight : after {
282
+ border-left-color : white;
283
+ }
284
+ html .dark div .dt-datetime-error {
285
+ color : # b11f1f ;
218
286
}
0 commit comments