vuecssuiant-designantdreactantantd-vueenterprisefrontendui-designvue-antdvue-antd-uivue3vuecomponent
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
import type { CSSObject } from '../../_util/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;
|
|
|