mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Fix area dialog too wide (#5136)
* Fix area dialog to wide * Update styles
This commit is contained in:
parent
f67bf6908f
commit
d83b308100
@ -142,9 +142,6 @@ class DialogAreaDetail extends LitElement {
|
|||||||
return [
|
return [
|
||||||
haStyleDialog,
|
haStyleDialog,
|
||||||
css`
|
css`
|
||||||
ha-paper-dialog {
|
|
||||||
min-width: 400px;
|
|
||||||
}
|
|
||||||
.form {
|
.form {
|
||||||
padding-bottom: 24px;
|
padding-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
@ -241,18 +241,11 @@ export class EntityRegistrySettings extends LitElement {
|
|||||||
}
|
}
|
||||||
mwc-button.warning {
|
mwc-button.warning {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
--mdc-theme-primary: var(--google-red-500);
|
|
||||||
}
|
|
||||||
.error {
|
|
||||||
color: var(--google-red-500);
|
|
||||||
}
|
}
|
||||||
.row {
|
.row {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
}
|
}
|
||||||
.secondary {
|
|
||||||
color: var(--secondary-text-color);
|
|
||||||
}
|
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -76,6 +76,22 @@ export const haStyle = css`
|
|||||||
@apply --paper-font-title;
|
@apply --paper-font-title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.secondary {
|
||||||
|
color: var(--secondary-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
color: var(--google-red-500);
|
||||||
|
}
|
||||||
|
|
||||||
|
.warning {
|
||||||
|
color: var(--google-red-500);
|
||||||
|
}
|
||||||
|
|
||||||
|
mwc-button.warning {
|
||||||
|
--mdc-theme-primary: var(--google-red-500);
|
||||||
|
}
|
||||||
|
|
||||||
button.link {
|
button.link {
|
||||||
background: none;
|
background: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
@ -160,8 +176,10 @@ export const haStyleDialog = css`
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.paper-dialog-buttons .warning {
|
@media all and (min-width: 450px) {
|
||||||
--mdc-theme-primary: var(--google-red-500);
|
ha-paper-dialog {
|
||||||
|
min-width: 400px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (max-width: 450px), all and (max-height: 500px) {
|
@media all and (max-width: 450px), all and (max-height: 500px) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user