Skip to content

Commit 05357a8

Browse files
authored
feat(Divider): add divider-horizontal-gutter variable (#5820)
1 parent 86450c2 commit 05357a8

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

components/divider/style/index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
clear: both;
2525
width: 100%;
2626
min-width: 100%; // Fix https://github.com/ant-design/ant-design/issues/10914
27-
margin: 24px 0;
27+
margin: @divider-horizontal-gutter 0;
2828
}
2929

3030
&-horizontal&-with-text {

components/style/themes/default.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@
290290
@divider-orientation-margin: 5%;
291291
@divider-color: rgba(0, 0, 0, 6%);
292292
@divider-vertical-gutter: 8px;
293+
@divider-horizontal-gutter: 24px;
293294

294295
// Dropdown
295296
@dropdown-selected-color: @primary-color;

components/style/themes/variable.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@
345345
@divider-orientation-margin: 5%;
346346
@divider-color: rgba(0, 0, 0, 6%);
347347
@divider-vertical-gutter: 8px;
348+
@divider-horizontal-gutter: 24px;
348349

349350
// Dropdown
350351
@dropdown-selected-color: @primary-color;

0 commit comments

Comments
 (0)