2022-04-19 11:28:06 +08:00
|
|
|
import type { CSSObject } from '@ant-design/cssinjs';
|
2024-04-08 14:04:08 +08:00
|
|
|
|
2022-04-19 11:28:06 +08:00
|
|
|
import type { StepsToken } from '.';
|
2022-11-23 20:22:38 +08:00
|
|
|
import type { GenerateStyle } from '../../theme/internal';
|
2022-04-19 11:28:06 +08:00
|
|
|
|
2022-11-19 13:47:33 +08:00
|
|
|
const genStepsRTLStyle: GenerateStyle<StepsToken, CSSObject> = (token) => {
|
2022-04-19 11:28:06 +08:00
|
|
|
const { componentCls } = token;
|
|
|
|
|
|
|
|
return {
|
|
|
|
[`&${componentCls}-rtl`]: {
|
|
|
|
direction: 'rtl',
|
|
|
|
|
|
|
|
[`${componentCls}-item`]: {
|
|
|
|
'&-subtitle': {
|
|
|
|
float: 'left',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// nav
|
|
|
|
[`&${componentCls}-navigation`]: {
|
|
|
|
[`${componentCls}-item::after`]: {
|
|
|
|
transform: 'rotate(-45deg)',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// vertical
|
|
|
|
[`&${componentCls}-vertical`]: {
|
|
|
|
[`> ${componentCls}-item`]: {
|
|
|
|
'&::after': {
|
|
|
|
transform: 'rotate(225deg)',
|
|
|
|
},
|
|
|
|
[`${componentCls}-item-icon`]: {
|
|
|
|
float: 'right',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// progress-dot
|
|
|
|
[`&${componentCls}-dot`]: {
|
|
|
|
[`${componentCls}-item-icon ${componentCls}-icon-dot, &${componentCls}-small ${componentCls}-item-icon ${componentCls}-icon-dot`]:
|
|
|
|
{
|
|
|
|
float: 'right',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
export default genStepsRTLStyle;
|