mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Refactor ha-form margins (#14176)
This commit is contained in:
parent
de008f65a3
commit
cb8e602340
@ -82,7 +82,6 @@ export class HaFormGrid extends LitElement implements HaFormElement {
|
|||||||
}
|
}
|
||||||
:host > ha-form {
|
:host > ha-form {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 24px;
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -155,14 +155,10 @@ export class HaForm extends LitElement implements HaFormElement {
|
|||||||
|
|
||||||
static get styles(): CSSResultGroup {
|
static get styles(): CSSResultGroup {
|
||||||
return css`
|
return css`
|
||||||
.root {
|
|
||||||
margin-bottom: -24px;
|
|
||||||
overflow: clip visible;
|
|
||||||
}
|
|
||||||
.root > * {
|
.root > * {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.root > *:not([own-margin]) {
|
.root > *:not([own-margin]):not(:last-child) {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
ha-alert[own-margin] {
|
ha-alert[own-margin] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user