select-dropdown-v2.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @use 'sass:map';
  2. @use 'mixins/mixins' as *;
  3. @use 'mixins/var' as *;
  4. @use 'common/var' as *;
  5. @include b(select-dropdown) {
  6. z-index: calc(#{getCssVar('index-top')} + 1);
  7. border-radius: getCssVar('border-radius-base');
  8. box-sizing: border-box;
  9. .#{$namespace}-scrollbar.is-empty .#{$namespace}-select-dropdown__list {
  10. padding: 0;
  11. }
  12. @include e(option-item) {
  13. @include when(selected) {
  14. &:not(.is-multiple) {
  15. @include when(disabled) {
  16. color: getCssVar('text-color-disabled');
  17. &::after {
  18. background-color: getCssVar('text-color-disabled');
  19. }
  20. }
  21. }
  22. }
  23. &:hover {
  24. &:not(.hover) {
  25. background-color: transparent;
  26. }
  27. }
  28. }
  29. @include when(multiple) {
  30. .#{$namespace}-select-dropdown__option-item {
  31. @include when(disabled) {
  32. @include when(selected) {
  33. color: getCssVar('text-color-disabled');
  34. }
  35. }
  36. }
  37. }
  38. }
  39. @include b(select-dropdown__empty) {
  40. padding: map.get($select-dropdown, 'empty-padding');
  41. margin: 0;
  42. text-align: center;
  43. color: map.get($select-dropdown, 'empty-color');
  44. font-size: getCssVar('select-font-size');
  45. }
  46. @include b(select-dropdown__wrap) {
  47. max-height: map.get($select-dropdown, 'max-height');
  48. }
  49. @include b(select-dropdown__list) {
  50. list-style: none;
  51. margin: map.get($select-dropdown, 'padding') !important;
  52. padding: 0 !important;
  53. box-sizing: border-box;
  54. }