-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(theme): [statisic] refactor statisic theme vars
- Loading branch information
Showing
2 changed files
with
33 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
.component-css-vars-statistic() { | ||
.inject-Statistic-vars() { | ||
// 标题字体大小 | ||
--ti-statistic-font-size: var(--ti-common-font-size-base, 14px); | ||
--tv-Statistic-font-size: var(--tv-font-size-md); | ||
// 后缀字体大小 | ||
--ti-statistic-suffix-font-size: var(--ti-common-font-size-0, 12px); | ||
--tv-Statistic-suffix-font-size: var(--tv-font-size-sm); | ||
// 标题内容字体大小 | ||
--ti-statistic-title-font-size: var(--ti-common-font-size-6, 32px); | ||
--tv-Statistic-title-font-size: var(--tv-font-size-heading-xl); | ||
// 标题字体颜色 | ||
--ti-statistic-font-color: var(--ti-common-color-primary-normal, #191919); | ||
--tv-Statistic-font-color: var(--tv-color-text); | ||
// 标题字体粗细 | ||
--ti-statistic-title-font-weight: var(--ti-common-font-weight-4, normal); | ||
--tv-Statistic-title-font-weight: var(--tv-font-weight-regular); | ||
// 标题上间距 | ||
--ti-statistic-title-margin-top: var(--ti-common-space-5x, 20px); | ||
// 描述上间距 | ||
--ti-statistic-description-margin-top: -8px; | ||
--tv-Statistic-title-margin-top: 20px; | ||
// 描述下间距 | ||
--ti-statistic-description-margin-bottom: var(--ti-common-space-6x, 24px); | ||
--tv-Statistic-description-margin-bottom: 24px; | ||
// 标题下间距 | ||
--ti-statistic-title-margin-bottom: var(--ti-common-space-5x, 20px); | ||
--tv-Statistic-title-margin-bottom: 20px; | ||
// 标题行高 | ||
--ti-statistic-title-line-height: var(ti-common-line-height-4); | ||
--tv-Statistic-title-line-height: var(--tv-line-height-number); | ||
// 前缀插槽字体粗细 | ||
--ti-statistic-font-weight: var(--ti-common-font-weight-5, 500); | ||
--tv-Statistic-font-weight: 500; | ||
// 前缀字体粗细 | ||
--ti-statistic-prefix-font-weight: var(--ti-common-font-weight-5, 500); | ||
--tv-Statistic-prefix-font-weight: 500; | ||
// 后缀字体粗细 | ||
--ti-statistic-suffix-font-weight: var(--ti-common-font-weight-5, 500); | ||
--tv-Statistic-suffix-font-weight: 500; | ||
// 数字内容字体粗细 | ||
--ti-statistic-description-font-weight: var(--ti-common-font-weight-normal, 400); | ||
// 后缀左边距 | ||
--ti-statistic-suffix-margin-left: var(--ti-common-space-base, 4px); | ||
--tv-Statistic-description-font-weight: var(--tv-font-weight-regular); | ||
// 数字内容字体 | ||
--ti-statistic-description-font-size: var(--ti-common-font-size-5, 24px); | ||
--tv-Statistic-description-font-size: var(--tv-font-size-heading-lg); | ||
} |