From 05357a8c3fcacfee6abd181e727cb0fab8c67e33 Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Sun, 24 Jul 2022 09:08:40 +0800 Subject: [PATCH] feat(Divider): add divider-horizontal-gutter variable (#5820) --- components/divider/style/index.less | 2 +- components/style/themes/default.less | 1 + components/style/themes/variable.less | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/divider/style/index.less b/components/divider/style/index.less index ff7e932ef..38808a9d1 100644 --- a/components/divider/style/index.less +++ b/components/divider/style/index.less @@ -24,7 +24,7 @@ clear: both; width: 100%; min-width: 100%; // Fix https://github.com/ant-design/ant-design/issues/10914 - margin: 24px 0; + margin: @divider-horizontal-gutter 0; } &-horizontal&-with-text { diff --git a/components/style/themes/default.less b/components/style/themes/default.less index f8f9f7847..0546a8da9 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -290,6 +290,7 @@ @divider-orientation-margin: 5%; @divider-color: rgba(0, 0, 0, 6%); @divider-vertical-gutter: 8px; +@divider-horizontal-gutter: 24px; // Dropdown @dropdown-selected-color: @primary-color; diff --git a/components/style/themes/variable.less b/components/style/themes/variable.less index ec4f8b72a..0691fde06 100644 --- a/components/style/themes/variable.less +++ b/components/style/themes/variable.less @@ -345,6 +345,7 @@ @divider-orientation-margin: 5%; @divider-color: rgba(0, 0, 0, 6%); @divider-vertical-gutter: 8px; +@divider-horizontal-gutter: 24px; // Dropdown @dropdown-selected-color: @primary-color;