From 74c30f412854776c47390a54036f5394fd565e75 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 18 Jun 2015 15:46:59 +0800 Subject: [PATCH] update modal style --- components/modal/demo/basic.md | 2 ++ style/components/dialog.less | 20 +++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/components/modal/demo/basic.md b/components/modal/demo/basic.md index 8fab228fd9..af32181f21 100644 --- a/components/modal/demo/basic.md +++ b/components/modal/demo/basic.md @@ -37,6 +37,8 @@ var Test = React.createClass({ onOk={this.handleOk} onCancel={this.handleCancel}>

对话框的内容

+

对话框的内容

+

对话框的内容

; } diff --git a/style/components/dialog.less b/style/components/dialog.less index b1c918a137..6346c982bd 100644 --- a/style/components/dialog.less +++ b/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; -} \ No newline at end of file +.@{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; + } +}