|
1 | 1 | .gmi-date-picker {
|
2 | 2 | width: 254px;
|
3 |
| - transition: all ease-in-out 0.2s; |
4 |
| - opacity: 0; |
5 |
| - transform: scale(0, 0); } |
| 3 | + -webkit-transition: all ease-in-out 0.2s; |
| 4 | + transition: all ease-in-out 0.2s; } |
6 | 5 | .gmi-date-picker.has-time {
|
7 | 6 | width: 324px; }
|
8 | 7 | .gmi-date-picker__header__icon-btn {
|
|
23 | 22 | background-color: #fff;
|
24 | 23 | border: 1px solid #d3dce6;
|
25 | 24 | border-radius: 2px;
|
26 |
| - box-shadow: 0 2px 5px #ccc; |
| 25 | + -webkit-box-shadow: 0 2px 5px #ccc; |
| 26 | + box-shadow: 0 2px 5px #ccc; |
27 | 27 | margin: 5px 0;
|
28 | 28 | z-index: 2008; }
|
29 | 29 | .gmi-picker-panel a {
|
|
53 | 53 | width: 50%;
|
54 | 54 | float: left;
|
55 | 55 | padding: 0 5px;
|
56 |
| - -moz-box-sizing: border-box; |
57 |
| - box-sizing: border-box; } |
| 56 | + -webkit-box-sizing: border-box; |
| 57 | + box-sizing: border-box; } |
58 | 58 | .gmi-picker-panel__body__header--time__wrapper .gmi-input {
|
59 | 59 | width: 100%;
|
60 | 60 | display: inline-block; }
|
|
65 | 65 | -moz-appearance: none;
|
66 | 66 | border-radius: 2px;
|
67 | 67 | border: 1px solid #bfcbd9;
|
68 |
| - -moz-box-sizing: border-box; |
69 |
| - box-sizing: border-box; |
| 68 | + -webkit-box-sizing: border-box; |
| 69 | + box-sizing: border-box; |
70 | 70 | color: #1f2d3d;
|
71 | 71 | display: block;
|
72 | 72 | line-height: 1;
|
73 | 73 | outline: none;
|
74 | 74 | padding: 3px 10px;
|
75 | 75 | font-size: 13px;
|
| 76 | + -webkit-transition: border-color 0.4s cubic-bezier(0.645, 0.045, 0.355, 1); |
76 | 77 | transition: border-color 0.4s cubic-bezier(0.645, 0.045, 0.355, 1); }
|
77 | 78 | .gmi-picker-panel__body__header--time__wrapper .gmi-input__inner:hover {
|
78 | 79 | border: 1px solid #038cd6; }
|
|
100 | 101 | .gmi-picker-panel .gmi-date-table td {
|
101 | 102 | width: 32px;
|
102 | 103 | height: 32px;
|
103 |
| - -moz-box-sizing: border-box; |
104 |
| - box-sizing: border-box; |
| 104 | + -webkit-box-sizing: border-box; |
| 105 | + box-sizing: border-box; |
105 | 106 | text-align: center;
|
106 | 107 | cursor: pointer;
|
107 | 108 | vertical-align: middle;
|
|
180 | 181 |
|
181 | 182 | .gmi-date-range-picker {
|
182 | 183 | width: 520px;
|
183 |
| - transition: all ease-in-out 0.2s; |
184 |
| - opacity: 0; |
185 |
| - transform: scale(0, 0); } |
| 184 | + -webkit-transition: all ease-in-out 0.2s; |
| 185 | + transition: all ease-in-out 0.2s; } |
186 | 186 | .gmi-date-range-picker.has-time {
|
187 | 187 | width: 660px; }
|
188 | 188 | .gmi-date-range-picker__body {
|
|
195 | 195 | padding-bottom: 5px; }
|
196 | 196 | .gmi-date-range-picker__body .gmi-picker-panel__body__main {
|
197 | 197 | width: 50%;
|
198 |
| - -moz-box-sizing: border-box; |
199 |
| - box-sizing: border-box; |
| 198 | + -webkit-box-sizing: border-box; |
| 199 | + box-sizing: border-box; |
200 | 200 | margin: 0;
|
201 | 201 | padding: 15px; }
|
202 | 202 | .gmi-date-range-picker__header--time__wrapper .gmi-input {
|
203 | 203 | float: left;
|
204 | 204 | width: 50%;
|
205 | 205 | padding: 0 5px;
|
206 |
| - -moz-box-sizing: border-box; |
207 |
| - box-sizing: border-box; } |
| 206 | + -webkit-box-sizing: border-box; |
| 207 | + box-sizing: border-box; } |
208 | 208 | .gmi-date-range-picker__header__icon-btn {
|
209 | 209 | color: #97a8be !important;
|
210 | 210 | position: absolute;
|
|
233 | 233 | color: #475669;
|
234 | 234 | background-color: #fff;
|
235 | 235 | border: 1px solid #d1dbe5;
|
236 |
| - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04); |
| 236 | + -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04); |
| 237 | + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04); |
237 | 238 | border-radius: 2px;
|
238 |
| - transform-origin: center top 0; |
| 239 | + -webkit-transform-origin: center top 0; |
| 240 | + -ms-transform-origin: center top 0; |
| 241 | + transform-origin: center top 0; |
239 | 242 | z-index: 2011;
|
240 | 243 | -webkit-user-select: none;
|
241 | 244 | -moz-user-select: none;
|
|
253 | 256 | color: #fff;
|
254 | 257 | position: absolute;
|
255 | 258 | font-size: 14px;
|
| 259 | + -webkit-transform: translateY(-50%); |
| 260 | + -ms-transform: translateY(-50%); |
256 | 261 | transform: translateY(-50%);
|
257 | 262 | line-height: 16px;
|
258 | 263 | background-color: #039cef;
|
259 | 264 | height: 32px;
|
260 | 265 | left: 0;
|
261 | 266 | right: 0;
|
262 |
| - -moz-box-sizing: border-box; |
263 |
| - box-sizing: border-box; |
| 267 | + -webkit-box-sizing: border-box; |
| 268 | + box-sizing: border-box; |
264 | 269 | padding-top: 6px;
|
265 | 270 | text-align: left; }
|
266 | 271 | .gmi-time-panel__body:after {
|
|
269 | 274 | color: #fff;
|
270 | 275 | position: absolute;
|
271 | 276 | font-size: 14px;
|
| 277 | + -webkit-transform: translateY(-50%); |
| 278 | + -ms-transform: translateY(-50%); |
272 | 279 | transform: translateY(-50%);
|
273 | 280 | line-height: 16px;
|
274 | 281 | background-color: #039cef;
|
275 | 282 | height: 32px;
|
276 | 283 | left: 66.66667%;
|
277 | 284 | right: 0;
|
278 |
| - -moz-box-sizing: border-box; |
279 |
| - box-sizing: border-box; |
| 285 | + -webkit-box-sizing: border-box; |
| 286 | + box-sizing: border-box; |
280 | 287 | padding-top: 6px;
|
281 | 288 | text-align: left; }
|
282 | 289 | .gmi-time-panel__body__item {
|
|
314 | 321 | cursor: not-allowed; }
|
315 | 322 |
|
316 | 323 | .picker-show {
|
317 |
| - opacity: 1; |
318 |
| - transform: scale(1, 1); } |
| 324 | + animation: showPanel 0.2s ease-in-out; |
| 325 | + -webkit-animation: showPanel 0.2s ease-in-out; |
| 326 | + -webkit-animation-fill-mode: forwards; |
| 327 | + animation-fill-mode: forwards; } |
319 | 328 |
|
320 | 329 | .picker-hide {
|
321 |
| - opacity: 0; |
322 |
| - transform: scale(0, 0); } |
| 330 | + animation: hidePanel 0.2s ease-in-out; |
| 331 | + -webkit-animation: hidePanel 0.2s ease-in-out; |
| 332 | + -webkit-animation-fill-mode: forwards; |
| 333 | + animation-fill-mode: forwards; } |
| 334 | + |
| 335 | +@-webkit-keyframes showPanel { |
| 336 | + 0% { |
| 337 | + opacity: 0; |
| 338 | + -webkit-transform: scale(0, 0); |
| 339 | + transform: scale(0, 0); |
| 340 | + -ms-transform: scale(0, 0); } |
| 341 | + 100% { |
| 342 | + opacity: 1; |
| 343 | + -webkit-transform: scale(1, 1); |
| 344 | + transform: scale(1, 1); |
| 345 | + -ms-transform: scale(1, 1); } } |
| 346 | + |
| 347 | +@-webkit-keyframes hidePanel { |
| 348 | + 0% { |
| 349 | + opacity: 1; |
| 350 | + -webkit-transform: scale(1, 1); |
| 351 | + transform: scale(1, 1); |
| 352 | + -ms-transform: scale(1, 1); } |
| 353 | + 100% { |
| 354 | + opacity: 0; |
| 355 | + -webkit-transform: scale(0, 0); |
| 356 | + transform: scale(0, 0); |
| 357 | + -ms-transform: scale(0, 0); } } |
0 commit comments