| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- const genStepsProgressStyle = token => {
- const {
- antCls,
- componentCls
- } = token;
- return {
- [`&${componentCls}-with-progress`]: {
- [`${componentCls}-item`]: {
- paddingTop: token.paddingXXS,
- [`&-process ${componentCls}-item-container ${componentCls}-item-icon ${componentCls}-icon`]: {
- color: token.processIconColor
- }
- },
- [`&${componentCls}-vertical > ${componentCls}-item `]: {
- paddingInlineStart: token.paddingXXS,
- [`> ${componentCls}-item-container > ${componentCls}-item-tail`]: {
- top: token.marginXXS,
- insetInlineStart: token.stepsIconSize / 2 - token.lineWidth + token.paddingXXS
- }
- },
- [`&, &${componentCls}-small`]: {
- [`&${componentCls}-horizontal ${componentCls}-item:first-child`]: {
- paddingBottom: token.paddingXXS,
- paddingInlineStart: token.paddingXXS
- }
- },
- [`&${componentCls}-small${componentCls}-vertical > ${componentCls}-item > ${componentCls}-item-container > ${componentCls}-item-tail`]: {
- insetInlineStart: token.stepsSmallIconSize / 2 - token.lineWidth + token.paddingXXS
- },
- [`&${componentCls}-label-vertical`]: {
- [`${componentCls}-item ${componentCls}-item-tail`]: {
- top: token.margin - 2 * token.lineWidth
- }
- },
- [`${componentCls}-item-icon`]: {
- position: 'relative',
- [`${antCls}-progress`]: {
- position: 'absolute',
- insetBlockStart: (token.stepsIconSize - token.stepsProgressSize - token.lineWidth * 2) / 2,
- insetInlineStart: (token.stepsIconSize - token.stepsProgressSize - token.lineWidth * 2) / 2
- }
- }
- }
- };
- };
- var _default = exports.default = genStepsProgressStyle;
|