|
30 | 30 | border: 1px solid blue; |
31 | 31 | } |
32 | 32 | &-panel { |
33 | | - border: 1px solid #666; |
34 | | - background: @background-color; |
35 | 33 | display: inline-block; |
36 | 34 | vertical-align: top; |
| 35 | + background: @background-color; |
| 36 | + border: 1px solid #666; |
37 | 37 |
|
38 | 38 | &-focused { |
39 | 39 | border-color: blue; |
|
73 | 73 | text-align: center; |
74 | 74 |
|
75 | 75 | > button { |
76 | | - border: 0; |
77 | 76 | padding: 0; |
| 77 | + border: 0; |
78 | 78 | } |
79 | 79 | } |
80 | 80 | } |
|
88 | 88 | } |
89 | 89 |
|
90 | 90 | &-inner { |
91 | | - font-size: 12px; |
92 | | - width: 100%; |
93 | | - height: 20px; |
94 | | - line-height: 20px; |
95 | 91 | display: inline-block; |
96 | 92 | box-sizing: border-box; |
97 | | - border: 0; |
98 | | - padding: 0; |
| 93 | + width: 100%; |
| 94 | + height: 20px; |
99 | 95 | margin: 0; |
| 96 | + padding: 0; |
| 97 | + font-size: 12px; |
| 98 | + line-height: 20px; |
100 | 99 | background: transparent; |
101 | | - cursor: pointer; |
102 | | - outline: none; |
| 100 | + border: 0; |
103 | 101 | border: none; |
| 102 | + outline: none; |
| 103 | + cursor: pointer; |
104 | 104 | transition: background 0.3s, border 0.3s; |
105 | 105 |
|
106 | 106 | &:hover { |
|
120 | 120 | &-range-hover { |
121 | 121 | position: relative; |
122 | 122 | &::after { |
123 | | - content: ''; |
124 | 123 | position: absolute; |
125 | 124 | top: 3px; |
| 125 | + right: 0; |
126 | 126 | bottom: 0; |
127 | 127 | left: 0; |
128 | | - right: 0; |
129 | 128 | border: 1px solid green; |
130 | | - border-left: 0; |
131 | 129 | border-right: 0; |
| 130 | + border-left: 0; |
| 131 | + content: ''; |
132 | 132 | pointer-events: none; |
133 | 133 | } |
134 | 134 | } |
|
200 | 200 | } |
201 | 201 |
|
202 | 202 | .@{prefix-cls}-cell-week { |
203 | | - font-size: 12px; |
204 | 203 | color: #999; |
205 | 204 | font-weight: bold; |
| 205 | + font-size: 12px; |
206 | 206 | } |
207 | 207 |
|
208 | 208 | .@{prefix-cls}-cell:hover > .@{prefix-cls}-cell-inner, |
|
229 | 229 |
|
230 | 230 | &-column { |
231 | 231 | flex: none; |
232 | | - text-align: left; |
233 | | - list-style: none; |
| 232 | + width: 50px; |
234 | 233 | margin: 0; |
235 | 234 | padding: 0 0 180px 0; |
236 | | - overflow-y: hidden; |
237 | 235 | overflow-x: hidden; |
238 | | - width: 50px; |
239 | | - transition: background 0.3s; |
| 236 | + overflow-y: hidden; |
240 | 237 | font-size: 12px; |
| 238 | + text-align: left; |
| 239 | + list-style: none; |
| 240 | + transition: background 0.3s; |
241 | 241 |
|
242 | 242 | &-active { |
243 | 243 | background: rgba(0, 0, 255, 0.1); |
|
248 | 248 | } |
249 | 249 |
|
250 | 250 | > li { |
251 | | - padding: 0; |
252 | 251 | margin: 0; |
| 252 | + padding: 0; |
253 | 253 | cursor: pointer; |
254 | 254 |
|
| 255 | + &.@{prefix-cls}-time-panel-cell { |
| 256 | + &-disabled { |
| 257 | + opacity: 0.5; |
| 258 | + } |
| 259 | + } |
| 260 | + |
255 | 261 | .@{prefix-cls}-time-panel-cell-inner { |
256 | | - color: #333; |
257 | | - padding: 0 0 0 12px; |
258 | | - margin: 0; |
259 | | - height: 20px; |
260 | | - line-height: 20px; |
261 | 262 | display: block; |
262 | 263 | width: 100%; |
| 264 | + height: 20px; |
| 265 | + margin: 0; |
| 266 | + padding: 0 0 0 12px; |
| 267 | + color: #333; |
| 268 | + line-height: 20px; |
263 | 269 | text-align: left; |
264 | 270 |
|
265 | 271 | .@{prefix-cls}-panel-rtl & { |
|
321 | 327 |
|
322 | 328 | &-clear { |
323 | 329 | position: absolute; |
324 | | - right: 4px; |
325 | 330 | top: 0; |
| 331 | + right: 4px; |
326 | 332 | cursor: pointer; |
327 | 333 |
|
328 | 334 | .@{prefix-cls}-rtl & { |
|
368 | 374 |
|
369 | 375 | .@{prefix-cls}-range-arrow { |
370 | 376 | position: absolute; |
| 377 | + left: @arrow-size; |
| 378 | + z-index: 1; |
371 | 379 | width: @arrow-size; |
372 | 380 | height: @arrow-size; |
373 | | - z-index: 1; |
374 | | - left: @arrow-size; |
375 | 381 | margin-left: 10px; |
376 | 382 | transition: all 0.3s; |
377 | 383 |
|
378 | 384 | .@{prefix-cls}-dropdown-rtl& { |
379 | 385 | right: @arrow-size; |
380 | 386 | left: auto; |
381 | | - margin-left: 0; |
382 | 387 | margin-right: 10px; |
| 388 | + margin-left: 0; |
383 | 389 | } |
384 | 390 |
|
385 | 391 | &::before, |
386 | 392 | &::after { |
387 | | - content: ''; |
388 | 393 | position: absolute; |
389 | | - box-sizing: border-box; |
390 | 394 | top: 50%; |
391 | 395 | left: 50%; |
| 396 | + box-sizing: border-box; |
392 | 397 | transform: translate(-50%, -50%); |
| 398 | + content: ''; |
393 | 399 |
|
394 | 400 | .@{prefix-cls}-dropdown-rtl& { |
395 | 401 | right: 50%; |
|
408 | 414 | width: @arrow-size - 2px; |
409 | 415 | height: @arrow-size - 2px; |
410 | 416 | border: (@arrow-size - 2px) / 2 solid blue; |
411 | | - border-color: @background-color @background-color transparent |
412 | | - transparent; |
| 417 | + border-color: @background-color @background-color transparent transparent; |
413 | 418 | } |
414 | 419 | } |
415 | 420 | } |
|
418 | 423 | // = Range Picker = |
419 | 424 | // ======================================================== |
420 | 425 | &-range { |
421 | | - display: inline-flex; |
422 | 426 | position: relative; |
| 427 | + display: inline-flex; |
423 | 428 |
|
424 | 429 | &-wrapper { |
425 | 430 | display: flex; |
426 | 431 | } |
427 | 432 |
|
428 | 433 | .@{prefix-cls}-active-bar { |
429 | | - background: green; |
430 | 434 | bottom: 0; |
431 | 435 | height: 3px; |
432 | | - pointer-events: none; |
433 | | - transition: all 0.3s; |
| 436 | + background: green; |
434 | 437 | opacity: 0; |
| 438 | + transition: all 0.3s; |
| 439 | + pointer-events: none; |
435 | 440 | } |
436 | 441 |
|
437 | 442 | &.@{prefix-cls}-focused { |
|
0 commit comments