Fix stack style in panel view (#20135)
This commit is contained in:
parent
447932eedb
commit
db3709952c
|
@ -87,7 +87,7 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
|
||||||
static get sharedStyles(): CSSResultGroup {
|
static get sharedStyles(): CSSResultGroup {
|
||||||
return css`
|
return css`
|
||||||
.card-header {
|
.card-header {
|
||||||
color: var(--ha-card-header-color, --primary-text-color);
|
color: var(--ha-card-header-color, var(--primary-text-color));
|
||||||
font-family: var(--ha-card-header-font-family, inherit);
|
font-family: var(--ha-card-header-font-family, inherit);
|
||||||
font-size: var(--ha-card-header-font-size, 24px);
|
font-size: var(--ha-card-header-font-size, 24px);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
@ -98,6 +98,11 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
|
||||||
display: block;
|
display: block;
|
||||||
padding: 24px 16px 16px;
|
padding: 24px 16px 16px;
|
||||||
}
|
}
|
||||||
|
:host {
|
||||||
|
--ha-card-border-radius: inherit !important;
|
||||||
|
--ha-card-border-width: inherit !important;
|
||||||
|
--ha-card-box-shadow: inherit !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,12 @@ export class PanelView extends LitElement implements LovelaceViewElement {
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
--ha-card-border-radius: 0;
|
--ha-card-border-radius: 0;
|
||||||
|
--ha-card-border-width: 0;
|
||||||
|
--ha-card-box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
ha-fab {
|
ha-fab {
|
||||||
|
|
Loading…
Reference in New Issue