智慧水务管理系统 - 精河县供水工程综合管理平台

descriptions-item.scss 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @use 'sass:map';
  2. @use 'mixins/mixins' as *;
  3. @use 'common/var' as *;
  4. $descriptions-item-label-margin-right: () !default;
  5. $descriptions-item-label-margin-right: map.merge(
  6. (
  7. 'large': 16px,
  8. 'default': 16px,
  9. 'small': 12px,
  10. ),
  11. $descriptions-item-label-margin-right
  12. );
  13. $descriptions-item-vertical-label-padding-bottom: () !default;
  14. $descriptions-item-vertical-label-padding-bottom: map.merge(
  15. (
  16. 'large': 8px,
  17. 'default': 6px,
  18. 'small': 4px,
  19. ),
  20. $descriptions-item-vertical-label-padding-bottom
  21. );
  22. @include b(descriptions) {
  23. @include e(label) {
  24. &.#{$namespace}-descriptions__cell.is-bordered-label {
  25. font-weight: bold;
  26. color: getCssVar('text-color', 'regular');
  27. background: getCssVar('descriptions-item-bordered-label-background');
  28. }
  29. &:not(.is-bordered-label) {
  30. color: getCssVar('text-color', 'primary');
  31. margin-right: map.get($descriptions-item-label-margin-right, 'default');
  32. }
  33. &.#{$namespace}-descriptions__cell:not(
  34. .is-bordered-label
  35. ).is-vertical-label {
  36. padding-bottom: map.get(
  37. $descriptions-item-vertical-label-padding-bottom,
  38. 'default'
  39. );
  40. }
  41. }
  42. @include e(content) {
  43. &.#{$namespace}-descriptions__cell.is-bordered-content {
  44. color: getCssVar('text-color', 'primary');
  45. }
  46. &:not(.is-bordered-label) {
  47. color: getCssVar('text-color', 'regular');
  48. }
  49. }
  50. @each $size in (large, small) {
  51. @include m($size) {
  52. @include e(label) {
  53. &:not(.is-bordered-label) {
  54. margin-right: map.get($descriptions-item-label-margin-right, $size);
  55. }
  56. &.#{$namespace}-descriptions__cell:not(
  57. .is-bordered-label
  58. ).is-vertical-label {
  59. padding-bottom: map.get(
  60. $descriptions-item-vertical-label-padding-bottom,
  61. $size
  62. );
  63. }
  64. }
  65. }
  66. }
  67. }