mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
import type { CSSObject } from '@ant-design/cssinjs';
|
|
|
|
import type { StepsToken } from '.';
|
|
import type { GenerateStyle } from '../../theme/internal';
|
|
|
|
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;
|