From ab55bc5636124319a0723d392f8bf2191e4cdbfa Mon Sep 17 00:00:00 2001 From: William Cai Date: Tue, 12 Mar 2019 18:45:49 +0800 Subject: [PATCH] refactor: add @modal-footer-padding-{vertical,horizontal} --- components/modal/style/modal.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/modal/style/modal.less b/components/modal/style/modal.less index 7bbdb42c7e..9cad218722 100644 --- a/components/modal/style/modal.less +++ b/components/modal/style/modal.less @@ -1,5 +1,7 @@ @dialog-prefix-cls: ~'@{ant-prefix}-modal'; @table-prefix-cls: ~'@{ant-prefix}-table'; +@modal-footer-padding-vertical: 10px; +@modal-footer-padding-horizontal: 16px; .@{dialog-prefix-cls} { .reset-component; @@ -89,7 +91,7 @@ } &-footer { - padding: 10px 16px; + padding: @modal-footer-padding-vertical @modal-footer-padding-horizontal; text-align: right; border-top: @border-width-base @border-style-base @border-color-split; border-radius: 0 0 @border-radius-base @border-radius-base;