From 312da2b77e53b85716dd471d0040b88d0dd3ce71 Mon Sep 17 00:00:00 2001 From: iamkun Date: Wed, 24 Jul 2019 11:35:41 +0800 Subject: [PATCH 1/2] add form label size token --- packages/theme-chalk/src/common/var.scss | 5 +++++ packages/theme-chalk/src/form.scss | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/theme-chalk/src/common/var.scss b/packages/theme-chalk/src/common/var.scss index e499b886ec6..a3e6494d8b8 100644 --- a/packages/theme-chalk/src/common/var.scss +++ b/packages/theme-chalk/src/common/var.scss @@ -939,6 +939,11 @@ $--calendar-border: $--table-border !default; $--calendar-selected-background-color: #F2F8FE !default; $--calendar-cell-width: 85px !default; +/* Form +-------------------------- */ +/// fontSize||Font|1 +$--form-font-size: $--font-size-base !default; + /* Avatar --------------------------*/ /// color||Color|0 diff --git a/packages/theme-chalk/src/form.scss b/packages/theme-chalk/src/form.scss index 45b4c1892ac..45cabc3a173 100644 --- a/packages/theme-chalk/src/form.scss +++ b/packages/theme-chalk/src/form.scss @@ -96,7 +96,7 @@ text-align: right; vertical-align: middle; float: left; - font-size: 14px; + font-size: $--form-font-size; color: $--color-text-regular; line-height: 40px; padding: 0 12px 0 0; From 34381ba5d184c9cf6a740f46bca33c9a4a623ad4 Mon Sep 17 00:00:00 2001 From: iamkun Date: Wed, 24 Jul 2019 11:37:46 +0800 Subject: [PATCH 2/2] add form label size token --- packages/theme-chalk/src/common/var.scss | 2 +- packages/theme-chalk/src/form.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/theme-chalk/src/common/var.scss b/packages/theme-chalk/src/common/var.scss index a3e6494d8b8..0bcb879ac38 100644 --- a/packages/theme-chalk/src/common/var.scss +++ b/packages/theme-chalk/src/common/var.scss @@ -942,7 +942,7 @@ $--calendar-cell-width: 85px !default; /* Form -------------------------- */ /// fontSize||Font|1 -$--form-font-size: $--font-size-base !default; +$--form-label-font-size: $--font-size-base !default; /* Avatar --------------------------*/ diff --git a/packages/theme-chalk/src/form.scss b/packages/theme-chalk/src/form.scss index 45cabc3a173..2494ca0bedd 100644 --- a/packages/theme-chalk/src/form.scss +++ b/packages/theme-chalk/src/form.scss @@ -96,7 +96,7 @@ text-align: right; vertical-align: middle; float: left; - font-size: $--form-font-size; + font-size: $--form-label-font-size; color: $--color-text-regular; line-height: 40px; padding: 0 12px 0 0;