Improve confirm Modal style detail

This commit is contained in:
afc163 2016-10-07 17:59:00 +08:00
parent 1566011720
commit 2969f9d1e5
2 changed files with 9 additions and 3 deletions

View File

@ -142,7 +142,9 @@ export default function confirm(config) {
style={style}
width={width}
>
<div style={{ zoom: 1, overflow: 'hidden' }}>{body} {footer}</div>
<div className={`${prefixCls}-body-wrapper`}>
{body} {footer}
</div>
</Dialog>
, div);

View File

@ -1,3 +1,5 @@
@import "../../style/mixins/index";
@confirm-prefix-cls: ~"@{ant-prefix}-confirm";
.@{confirm-prefix-cls} {
@ -13,6 +15,10 @@
padding: 30px 40px;
}
&-body-wrapper {
.clearfix();
}
&-body {
.@{confirm-prefix-cls}-title {
color: @text-color;
@ -31,8 +37,6 @@
font-size: 24px;
margin-right: 16px;
padding: 0 1px;
position: relative;
top: 1px;
float: left;
}
}