small.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. const genStepsSmallStyle = token => {
  7. const {
  8. componentCls,
  9. stepsSmallIconSize,
  10. // stepsSmallIconMargin,
  11. fontSizeSM,
  12. fontSize,
  13. colorTextDescription
  14. } = token;
  15. return {
  16. [`&${componentCls}-small`]: {
  17. [`&${componentCls}-horizontal:not(${componentCls}-label-vertical) ${componentCls}-item`]: {
  18. paddingInlineStart: token.paddingSM,
  19. '&:first-child': {
  20. paddingInlineStart: 0
  21. }
  22. },
  23. [`${componentCls}-item-icon`]: {
  24. width: stepsSmallIconSize,
  25. height: stepsSmallIconSize,
  26. // margin: stepsSmallIconMargin,
  27. marginTop: 0,
  28. marginBottom: 0,
  29. marginInline: `0 ${token.marginXS}px`,
  30. fontSize: fontSizeSM,
  31. lineHeight: `${stepsSmallIconSize}px`,
  32. textAlign: 'center',
  33. borderRadius: stepsSmallIconSize
  34. },
  35. [`${componentCls}-item-title`]: {
  36. paddingInlineEnd: token.paddingSM,
  37. fontSize,
  38. lineHeight: `${stepsSmallIconSize}px`,
  39. '&::after': {
  40. top: stepsSmallIconSize / 2
  41. }
  42. },
  43. [`${componentCls}-item-description`]: {
  44. color: colorTextDescription,
  45. fontSize
  46. },
  47. [`${componentCls}-item-tail`]: {
  48. top: stepsSmallIconSize / 2 - token.paddingXXS
  49. },
  50. [`${componentCls}-item-custom ${componentCls}-item-icon`]: {
  51. width: 'inherit',
  52. height: 'inherit',
  53. lineHeight: 'inherit',
  54. background: 'none',
  55. border: 0,
  56. borderRadius: 0,
  57. [`> ${componentCls}-icon`]: {
  58. fontSize: stepsSmallIconSize,
  59. lineHeight: `${stepsSmallIconSize}px`,
  60. transform: 'none'
  61. }
  62. }
  63. }
  64. };
  65. };
  66. var _default = exports.default = genStepsSmallStyle;