Browse Source

update modal style

pull/26/head
afc163 10 years ago
parent
commit
74c30f4128
  1. 2
      components/modal/demo/basic.md
  2. 20
      style/components/dialog.less

2
components/modal/demo/basic.md

@ -37,6 +37,8 @@ var Test = React.createClass({
onOk={this.handleOk}
onCancel={this.handleCancel}>
<p>对话框的内容</p>
<p>对话框的内容</p>
<p>对话框的内容</p>
</Modal>
</div>;
}

20
style/components/dialog.less

@ -3,8 +3,18 @@
@import "./dialog/Dialog.less";
@import "./dialog/Mask.less";
.@{dialogPrefixCls}-footer button + button {
margin-left: 8px;
margin-bottom: 0;
}
.@{dialogPrefixCls} {
&-header {
padding: 13px 18px 14px 16px;
}
&-body {
padding: 16px;
}
&-footer {
padding: 10px 18px 10px 10px;
}
&-footer button + button {
margin-left: 8px;
margin-bottom: 0;
}
}

Loading…
Cancel
Save