|
44 | 44 | } |
45 | 45 | } |
46 | 46 |
|
47 | | - .@{select-prefix-cls}-focused:not(.@{select-prefix-cls}-disabled) & { |
48 | | - .active(); |
49 | | - } |
50 | | - |
51 | 47 | .@{select-prefix-cls}-disabled& { |
52 | 48 | color: @disabled-color; |
53 | 49 | background: @input-disabled-bg; |
|
96 | 92 | .hover(); |
97 | 93 | } |
98 | 94 |
|
| 95 | + &:not(&-disabled)&-focused &-selector { |
| 96 | + .active(); |
| 97 | + } |
| 98 | + |
99 | 99 | // ======================== Selection ======================== |
100 | 100 | &-selection-item { |
101 | 101 | flex: 1; |
|
341 | 341 | } |
342 | 342 |
|
343 | 343 | // no border style |
344 | | - &-borderless &-selector { |
345 | | - background-color: transparent !important; |
346 | | - border-color: transparent !important; |
347 | | - box-shadow: none !important; |
| 344 | + &&-borderless, |
| 345 | + &&-borderless:hover, |
| 346 | + &&-borderless:focus, |
| 347 | + &&-borderless&-focused, |
| 348 | + &&-borderless&-disabled, |
| 349 | + &&-borderless&[disabled] { |
| 350 | + .@{select-prefix-cls}-selector { |
| 351 | + background-color: transparent; |
| 352 | + border-color: transparent; |
| 353 | + box-shadow: none; |
| 354 | + } |
348 | 355 | } |
349 | 356 |
|
350 | 357 | // filled style |
351 | | - &-filled &-selector { |
352 | | - background-color: @input-variant-filled-bg !important; |
353 | | - border-color: transparent !important; |
354 | | - box-shadow: none !important; |
| 358 | + &&-filled &-selector { |
| 359 | + background-color: @input-variant-filled-bg; |
| 360 | + border-color: transparent; |
| 361 | + box-shadow: none; |
355 | 362 | } |
356 | 363 |
|
357 | | - &-filled:hover &-selector { |
358 | | - background-color: @input-variant-filled-hover-bg !important; |
359 | | - border-color: transparent !important; |
360 | | - box-shadow: none !important; |
| 364 | + &&-filled:hover &-selector { |
| 365 | + background-color: @input-variant-filled-hover-bg; |
| 366 | + border-color: transparent; |
| 367 | + box-shadow: none; |
361 | 368 | } |
362 | 369 |
|
363 | | - &-filled:focus &-selector, |
364 | | - &-filled&-focused &-selector { |
365 | | - .active() !important; |
366 | | - background-color: transparent !important; |
367 | | - box-shadow: none !important; |
| 370 | + &&-filled:focus, |
| 371 | + &&-filled&-focused { |
| 372 | + .@{select-prefix-cls}-selector { |
| 373 | + .active(); |
| 374 | + background-color: transparent; |
| 375 | + box-shadow: none; |
| 376 | + } |
368 | 377 | } |
369 | 378 |
|
370 | | - &-filled&-disabled &-selector, |
371 | | - &-filled&[disabled] &-selector { |
372 | | - .disabled() !important; |
| 379 | + &&-filled&-disabled, |
| 380 | + &&-filled&[disabled] { |
| 381 | + .@{select-prefix-cls}-selector { |
| 382 | + .disabled(); |
| 383 | + } |
373 | 384 | } |
374 | 385 |
|
375 | 386 | // underlined style |
376 | | - &-underlined &-selector, |
377 | | - &-underlined:hover &-selector, |
378 | | - &-underlined:focus &-selector, |
379 | | - &-underlined&-focused &-selector, |
380 | | - &-underlined&-disabled &-selector, |
381 | | - &-underlined&[disabled] &-selector { |
382 | | - background-color: transparent !important; |
383 | | - border-width: 0 0 @border-width-base !important; |
384 | | - border-radius: 0 !important; |
385 | | - box-shadow: none !important; |
| 387 | + &&-underlined, |
| 388 | + &&-underlined:hover, |
| 389 | + &&-underlined:focus, |
| 390 | + &&-underlined&-focused, |
| 391 | + &&-underlined&-disabled, |
| 392 | + &&-underlined&[disabled] { |
| 393 | + .@{select-prefix-cls}-selector { |
| 394 | + background-color: transparent; |
| 395 | + border-width: 0 0 @border-width-base; |
| 396 | + border-radius: 0; |
| 397 | + box-shadow: none; |
| 398 | + } |
386 | 399 | } |
387 | 400 |
|
| 401 | + &&-underlined:hover:not(&-focused):not(:focus) &-selector { |
| 402 | + border-color: @input-border-color; |
| 403 | + } |
| 404 | + |
| 405 | + |
388 | 406 | &&-in-form-item { |
389 | 407 | width: 100%; |
390 | 408 | } |
|
0 commit comments