Skip to content

Commit

Permalink
fix(statistic): token使用错误 (#1645)
Browse files Browse the repository at this point in the history
chore: 移除没有删使用的定义

feat: @statistic-value-line-height
  • Loading branch information
liweijie0812 authored Nov 13, 2023
1 parent d195290 commit 6582900
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
12 changes: 6 additions & 6 deletions style/web/components/statistic/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,24 @@

.@{statistic-cls} {
display: inline-block;
line-height: @text-line-height-xl;
font-size: @font-size-base;
line-height: @text-line-height-base;
color: @statistic-text-color;

&-title {
font-size: @statistic-title-font-size;
font-weight: @statistic-title-font-weight;
margin-bottom: @statistic-title-margin-bottom;
}

&-content {
display: inline-block;
line-height: 36px;
font-weight: @statistic-value-font-weight;
color: @statistic-value-text-color;
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */
font-family: "TCloud Number";
text-align: left;
white-space: nowrap;

&-value {
font-size: @statistic-value-font-size;
line-height: @statistic-value-line-height;
}

&-unit {
Expand All @@ -46,6 +43,9 @@
align-items: center;
font-size: @statistic-prefix-font-size;
margin-right: @statistic-prefix-margin-right;
.@{prefix}-icon {
font-size: @statistic-prefix-font-size;
}
}
}

Expand Down
17 changes: 8 additions & 9 deletions style/web/components/statistic/_var.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@

@statistic-text-color: @text-color-secondary;

@statistic-title-font-size: @font-title-medium;
@statistic-title-font-weight: 400;
@statistic-title-margin-bottom: @spacer-s;
@statistic-title-font-size: @font-body-medium;
@statistic-title-margin-bottom: @comp-margin-s;

@statistic-value-font-size: 28px;
@statistic-value-font-weight: 500;
@statistic-value-font-size: var(--td-font-size-headline-medium);
@statistic-value-line-height: var(--td-line-height-headline-medium);
@statistic-value-text-color: @text-color-primary;

@statistic-unit-font-size: 14px;
@statistic-unit-margin-left: @spacer-s;
@statistic-unit-font-size: @font-body-medium;
@statistic-unit-margin-left: @comp-margin-xs;

@statistic-prefix-font-size: 22px;
@statistic-prefix-margin-right: @spacer-s;
@statistic-prefix-font-size: @font-size-xl;
@statistic-prefix-margin-right: @comp-margin-s;

@statistic-suffix-font-size: 22px;
@statistic-suffix-margin-left: @spacer-s;
Expand Down

0 comments on commit 6582900

Please sign in to comment.