amis-rpc-design/node_modules/antd/es/steps/style/custom-icon.js
2023-10-07 19:42:30 +08:00

34 lines
890 B
JavaScript

const genStepsCustomIconStyle = token => {
const {
componentCls,
customIconTop,
customIconSize,
customIconFontSize
} = token;
return {
[`${componentCls}-item-custom`]: {
[`> ${componentCls}-item-container > ${componentCls}-item-icon`]: {
height: 'auto',
background: 'none',
border: 0,
[`> ${componentCls}-icon`]: {
top: customIconTop,
width: customIconSize,
height: customIconSize,
fontSize: customIconFontSize,
lineHeight: `${customIconFontSize}px`
}
}
},
// Only adjust horizontal customize icon width
[`&:not(${componentCls}-vertical)`]: {
[`${componentCls}-item-custom`]: {
[`${componentCls}-item-icon`]: {
width: 'auto',
background: 'none'
}
}
}
};
};
export default genStepsCustomIconStyle;