mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +08:00
chore: adjust label style
This commit is contained in:
parent
88050fe917
commit
08ae75be8c
@ -96,43 +96,43 @@ const genLabelPlacementStyle: GenerateStyle<StepsToken, CSSObject> = (token) =>
|
|||||||
'--steps-title-horizontal-rail-gap': token.marginXXS,
|
'--steps-title-horizontal-rail-gap': token.marginXXS,
|
||||||
'--steps-heading-height': 'var(--steps-icon-size-max)',
|
'--steps-heading-height': 'var(--steps-icon-size-max)',
|
||||||
|
|
||||||
[itemCls]: {
|
[`> ${itemCls}`]: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
},
|
|
||||||
|
|
||||||
[`${itemCls}-wrapper`]: {
|
[`${itemCls}-wrapper`]: {
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
rowGap: `var(--steps-title-vertical-row-gap)`,
|
rowGap: `var(--steps-title-vertical-row-gap)`,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Section
|
// Section
|
||||||
[`${itemCls}-section`]: {
|
[`${itemCls}-section`]: {
|
||||||
alignSelf: 'stretch',
|
alignSelf: 'stretch',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
[`${itemCls}-header`]: {
|
[`${itemCls}-header`]: {
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
},
|
},
|
||||||
|
|
||||||
// >>> title & subtitle & Content
|
// >>> title & subtitle & Content
|
||||||
[`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: {
|
[`${itemCls}-title, ${itemCls}-subtitle, ${itemCls}-content`]: {
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
},
|
},
|
||||||
|
|
||||||
[`${itemCls}-subtitle`]: {
|
[`${itemCls}-subtitle`]: {
|
||||||
margin: 0,
|
margin: 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
// >>> rail
|
// >>> rail
|
||||||
[`${itemCls}-rail`]: {
|
[`${itemCls}-rail`]: {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
top: 0,
|
top: 0,
|
||||||
width: `calc(100% - var(--steps-icon-size) - var(--steps-title-horizontal-rail-gap) * 2)`,
|
width: `calc(100% - var(--steps-icon-size) - var(--steps-title-horizontal-rail-gap) * 2)`,
|
||||||
insetInlineStart: `calc(50% + var(--steps-icon-size) / 2 + var(--steps-title-horizontal-rail-gap))`,
|
insetInlineStart: `calc(50% + var(--steps-icon-size) / 2 + var(--steps-title-horizontal-rail-gap))`,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// With descriptionMaxWidth
|
// With descriptionMaxWidth
|
||||||
|
Loading…
Reference in New Issue
Block a user