| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- const genStepsSmallStyle = token => {
- const {
- componentCls,
- stepsSmallIconSize,
- // stepsSmallIconMargin,
- fontSizeSM,
- fontSize,
- colorTextDescription
- } = token;
- return {
- [`&${componentCls}-small`]: {
- [`&${componentCls}-horizontal:not(${componentCls}-label-vertical) ${componentCls}-item`]: {
- paddingInlineStart: token.paddingSM,
- '&:first-child': {
- paddingInlineStart: 0
- }
- },
- [`${componentCls}-item-icon`]: {
- width: stepsSmallIconSize,
- height: stepsSmallIconSize,
- // margin: stepsSmallIconMargin,
- marginTop: 0,
- marginBottom: 0,
- marginInline: `0 ${token.marginXS}px`,
- fontSize: fontSizeSM,
- lineHeight: `${stepsSmallIconSize}px`,
- textAlign: 'center',
- borderRadius: stepsSmallIconSize
- },
- [`${componentCls}-item-title`]: {
- paddingInlineEnd: token.paddingSM,
- fontSize,
- lineHeight: `${stepsSmallIconSize}px`,
- '&::after': {
- top: stepsSmallIconSize / 2
- }
- },
- [`${componentCls}-item-description`]: {
- color: colorTextDescription,
- fontSize
- },
- [`${componentCls}-item-tail`]: {
- top: stepsSmallIconSize / 2 - token.paddingXXS
- },
- [`${componentCls}-item-custom ${componentCls}-item-icon`]: {
- width: 'inherit',
- height: 'inherit',
- lineHeight: 'inherit',
- background: 'none',
- border: 0,
- borderRadius: 0,
- [`> ${componentCls}-icon`]: {
- fontSize: stepsSmallIconSize,
- lineHeight: `${stepsSmallIconSize}px`,
- transform: 'none'
- }
- }
- }
- };
- };
- var _default = exports.default = genStepsSmallStyle;
|