Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theme): component style && common theme #814

Merged
merged 14 commits into from
Sep 26, 2024
2 changes: 1 addition & 1 deletion packages/theme/base/src/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
/**
* 1.3 字号
**/
--te-base-font-size: 11px; // 正文-常规
--te-base-font-size-sm: 11px; // 正文-常规
wenmine marked this conversation as resolved.
Show resolved Hide resolved
--te-base-font-size-base: 12px; // 正文-常规
--te-base-font-size-1: 14px;
--te-base-font-size-2: 16px;
Expand Down
6 changes: 1 addition & 5 deletions packages/theme/base/src/component-common.less
chilingling marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
}
}
&.is-disabled .tiny-input__inner {
fill: var(--te-common-text-disabled);
background: var(--te-common-bg-disabled);
color: var(--te-common-text-disabled);
font-size: var(--te-base-font-size-base);
Expand Down Expand Up @@ -265,15 +264,13 @@
border: 1px solid var(--te-common-border-secondary);
color: var(--te-common-text-primary);
background-color: var(--te-common-bg-default);
fill: var(--te-common-bg-default);
&:hover {
border: 1px solid var(--te-common-border-hover);
}
}
// 确认按钮
&.tiny-button--primary {
background-color: var(--te-common-bg-primary);
fill: var(--te-common-bg-primary);
color: var(--te-common-text-inverse);
border: 1px solid var(--te-common-border-active);
&:hover {
Expand Down Expand Up @@ -415,7 +412,6 @@
}
}
.tiny-numeric-base .is-disabled {
fill: var(--te-common-bg-disabled);
background: var(--te-common-bg-disabled);
color: var(--te-common-text-disabled);
}
Expand Down Expand Up @@ -636,7 +632,7 @@
padding-top: 4px;
}
.tiny-form-item__error {
font-size: var(--te-base-font-size);
font-size: var(--te-base-font-size-base);
}
}

Expand Down