Skip to content

Commit

Permalink
fix: heding margin moved: prefix variable out of default.less
Browse files Browse the repository at this point in the history
  • Loading branch information
mucluck committed Sep 19, 2019
1 parent ee5f9ad commit 5657145
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
22 changes: 16 additions & 6 deletions components/style/mixins/typography.less
Expand Up @@ -3,12 +3,14 @@
margin-bottom: 1em;
}

.typography-title(@fontSize; @fontWeight; @lineHeight; @headingColor; @headingMargin) {
.typography-title(@fontSize; @fontWeight; @lineHeight; @headingColor; @headingMarginRight; @headingMarginBottom; @headingMarginLeft) {
font-size: @fontSize;
font-weight: @fontWeight;
line-height: @lineHeight;
color: @headingColor;
margin: @headingMargin;
margin-right: @headingMarginRight;
margin-bottom: @headingMarginBottom;
margin-left: @headingMarginLeft;
}

.typography-title-1() {
Expand All @@ -17,7 +19,9 @@
@typography-title-font-weight,
1.23,
@heading-color,
@typography-title-margin
@typography-title-margin-right,
@typography-title-margin-bottom,
@typography-title-margin-left
);
}
.typography-title-2() {
Expand All @@ -26,7 +30,9 @@
@typography-title-font-weight,
1.35,
@heading-color,
@typography-title-margin
@typography-title-margin-right,
@typography-title-margin-bottom,
@typography-title-margin-left
);
}
.typography-title-3() {
Expand All @@ -35,7 +41,9 @@
@typography-title-font-weight,
1.35,
@heading-color,
@typography-title-margin
@typography-title-margin-right,
@typography-title-margin-bottom,
@typography-title-margin-left
);
}
.typography-title-4() {
Expand All @@ -44,6 +52,8 @@
@typography-title-font-weight,
1.4,
@heading-color,
@typography-title-margin
@typography-title-margin-right,
@typography-title-margin-bottom,
@typography-title-margin-left
);
}
5 changes: 3 additions & 2 deletions components/style/themes/default.less
Expand Up @@ -681,6 +681,7 @@
// Typography
// ---
@typography-title-font-weight: 600;
@typography-title-margin: 0 0 0.5em 0;
@typography-title-margin-top: 1.2em;
@typography-prefix-cls: ~'@{ant-prefix}-typography';
@typography-title-margin-right: 0;
@typography-title-margin-bottom: 0.5em;
@typography-title-margin-left: 0;
2 changes: 2 additions & 0 deletions components/typography/style/index.less
@@ -1,6 +1,8 @@
@import '../../style/themes/index';
@import '../../style/mixins/index';

@typography-prefix-cls: ~'@{ant-prefix}-typography';

// =============== Basic ===============
.@{typography-prefix-cls} {
color: @text-color;
Expand Down

0 comments on commit 5657145

Please sign in to comment.