option-group.scss 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. @use 'sass:map';
  2. @use 'mixins/mixins' as *;
  3. @use 'common/var' as *;
  4. @include b(select-group) {
  5. $gap: 20px;
  6. margin: 0;
  7. padding: 0;
  8. @include e(wrap) {
  9. position: relative;
  10. list-style: none;
  11. margin: 0;
  12. padding: 0;
  13. &:not(:last-of-type) {
  14. padding-bottom: 24px;
  15. &::after {
  16. content: '';
  17. position: absolute;
  18. display: block;
  19. left: $gap;
  20. right: $gap;
  21. bottom: 12px;
  22. height: 1px;
  23. background: getCssVar('border-color-light');
  24. }
  25. }
  26. }
  27. @include e(split) {
  28. &-dash {
  29. position: absolute;
  30. left: $gap;
  31. right: $gap;
  32. height: 1px;
  33. background: getCssVar('border-color-light');
  34. }
  35. }
  36. @include e(title) {
  37. padding-left: $gap;
  38. font-size: map.get($select-group, 'font-size');
  39. color: map.get($select-group, 'text-color');
  40. line-height: map.get($select-group, 'height');
  41. }
  42. & .#{$namespace}-select-dropdown__item {
  43. padding-left: $gap;
  44. }
  45. }