mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Add theme variables for text of picture cards (#8022)
This commit is contained in:
parent
60bf1a5451
commit
9414f89e50
@ -199,11 +199,11 @@ class HuiPictureEntityCard extends LitElement implements LovelaceCard {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: rgba(0, 0, 0, 0.3);
|
background-color: var(--ha-picture-card-background-color, rgba(0, 0, 0, 0.3));
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
color: white;
|
color: var(--ha-picture-card-text-color, white);
|
||||||
}
|
}
|
||||||
|
|
||||||
.both {
|
.both {
|
||||||
|
@ -314,11 +314,11 @@ class HuiPictureGlanceCard extends LitElement implements LovelaceCard {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: rgba(0, 0, 0, 0.3);
|
background-color: var(--ha-picture-card-background-color, rgba(0, 0, 0, 0.3));
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
color: white;
|
color: var(--ha-picture-card-text-color, white);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@ -332,11 +332,11 @@ class HuiPictureGlanceCard extends LitElement implements LovelaceCard {
|
|||||||
ha-icon-button {
|
ha-icon-button {
|
||||||
--mdc-icon-button-size: 40px;
|
--mdc-icon-button-size: 40px;
|
||||||
--disabled-text-color: currentColor;
|
--disabled-text-color: currentColor;
|
||||||
color: #a9a9a9;
|
color: var(--ha-picture-icon-button-color, #a9a9a9);
|
||||||
}
|
}
|
||||||
|
|
||||||
ha-icon-button.state-on {
|
ha-icon-button.state-on {
|
||||||
color: white;
|
color: var(--ha-picture-icon-button-on-color, white);
|
||||||
}
|
}
|
||||||
.state {
|
.state {
|
||||||
display: block;
|
display: block;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user