mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
pref: 内外边距外观组件优化 (#9323)
Co-authored-by: hongyang03 <hongyang03@baidu.com>
This commit is contained in:
parent
2cc9865577
commit
eb5299e645
@ -233,7 +233,7 @@ function PaddingAndMarginDialog(props: PaddingAndMarginProps) {
|
||||
inheritValue={editorThemePath ? 'inherit' : ''}
|
||||
placeholder={editorDefaultValue?.margin}
|
||||
/>
|
||||
<div className="Theme-PaddingAndMargin-input-label">Margin</div>
|
||||
<div className="Theme-PaddingAndMargin-input-label">外边距</div>
|
||||
</div>
|
||||
)}
|
||||
{!hidePadding && (
|
||||
@ -252,9 +252,7 @@ function PaddingAndMarginDialog(props: PaddingAndMarginProps) {
|
||||
inheritValue={editorThemePath ? 'inherit' : ''}
|
||||
placeholder={editorDefaultValue?.padding}
|
||||
/>
|
||||
<div className="Theme-PaddingAndMargin-input-label">
|
||||
Padding
|
||||
</div>
|
||||
<div className="Theme-PaddingAndMargin-input-label">内边距</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
@ -126,8 +126,8 @@ $bg: url('data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjI1NnB4IiBoZWlnaHQ9IjEzMnB4
|
||||
position: relative;
|
||||
&::before,
|
||||
&::after {
|
||||
font-size: 10px;
|
||||
color: #b8babf;
|
||||
font-size: 12px;
|
||||
color: #151b26;
|
||||
font-weight: 400;
|
||||
position: absolute;
|
||||
transform: scale(0.8);
|
||||
@ -209,14 +209,14 @@ $bg: url('data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjI1NnB4IiBoZWlnaHQ9IjEzMnB4
|
||||
}
|
||||
&-custom--padding {
|
||||
&::after {
|
||||
content: 'Padding';
|
||||
content: '内边距';
|
||||
top: px2rem(28px);
|
||||
left: px2rem(56px);
|
||||
}
|
||||
}
|
||||
&-custom--margin {
|
||||
&::before {
|
||||
content: 'Margin';
|
||||
content: '外边距';
|
||||
top: 0;
|
||||
left: px2rem(2px);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user