style: nested style for cssinjs in Result (#34401)

* chore: update gitignore

* style: nested style
This commit is contained in:
vagusX
2022-03-10 13:44:40 +08:00
committed by GitHub
parent 253b43fed3
commit f7ebd0d55f
2 changed files with 11 additions and 9 deletions

2
.gitignore vendored
View File

@@ -67,3 +67,5 @@ __image_snapshots__/
/jest-stare
/imageSnapshots
/imageDiffSnapshots
.devcontainer*

View File

@@ -42,10 +42,10 @@ const genBaseStyle = (
[`${resultCls} ${resultCls}-icon`]: {
marginBottom: token.padding * 1.5,
textAlign: 'center',
},
[`${resultCls} ${resultCls}-icon > ${dotIconPrefixCls}`]: {
fontSize: token.resultIconFontSize,
[`& > ${dotIconPrefixCls}`]: {
fontSize: token.resultIconFontSize,
},
},
[`${resultCls} ${resultCls}-title`]: {
@@ -73,14 +73,14 @@ const genBaseStyle = (
[`${resultCls} ${resultCls}-extra`]: {
margin: token.resultExtraMargin,
textAlign: 'center',
},
[`${resultCls} ${resultCls}-extra > *`]: {
marginInlineEnd: token.paddingXS,
},
'& > *': {
marginInlineEnd: token.paddingXS,
[`${resultCls} ${resultCls}-extra > *:last-child`]: {
marginInlineEnd: 0,
'&:last-child': {
marginInlineEnd: 0,
},
},
},
});