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 {
|
||||
return css`
|
||||
.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-size: var(--ha-card-header-font-size, 24px);
|
||||
font-weight: normal;
|
||||
|
@ -98,6 +98,11 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
|
|||
display: block;
|
||||
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 {
|
||||
display: block;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
* {
|
||||
--ha-card-border-radius: 0;
|
||||
--ha-card-border-width: 0;
|
||||
--ha-card-box-shadow: none;
|
||||
}
|
||||
|
||||
ha-fab {
|
||||
|
|
Loading…
Reference in New Issue