mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Themeable badge icon size and badge font size (#25185)
Co-authored-by: Wendelin <12148533+wendevlin@users.noreply.github.com>
This commit is contained in:
parent
66dbafb5f5
commit
92521d4565
@ -103,7 +103,7 @@ export class HaBadge extends LitElement {
|
|||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
font-size: 12px;
|
font-size: var(--ha-font-size-badge, var(--ha-font-size-s));
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
@ -111,7 +111,7 @@ export class HaBadge extends LitElement {
|
|||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
}
|
}
|
||||||
::slotted([slot="icon"]) {
|
::slotted([slot="icon"]) {
|
||||||
--mdc-icon-size: 18px;
|
--mdc-icon-size: var(--ha-icon-size-badge, 18px);
|
||||||
color: var(--badge-color);
|
color: var(--badge-color);
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
margin-left: -4px;
|
margin-left: -4px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user