ant-design/components/steps/style/rtl.ts
二货机器人 de2992f96f
chore: move path (#36243)
* chore: base move

* chore: all path

* chore: fix script
2022-06-27 14:25:59 +08:00

48 lines
1.1 KiB
TypeScript

import type { CSSObject } from '@ant-design/cssinjs';
import type { StepsToken } from '.';
import type { GenerateStyle } from '../../theme';
const genStepsRTLStyle: GenerateStyle<StepsToken, CSSObject> = token => {
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;