small.js 1.9 KB

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