Fix area dialog too wide (#5136)

* Fix area dialog to wide

* Update styles
This commit is contained in:
Bram Kragten 2020-03-12 01:10:26 +01:00 committed by GitHub
parent f67bf6908f
commit d83b308100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 12 deletions

View File

@ -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;
} }

View File

@ -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);
}
`, `,
]; ];
} }

View File

@ -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) {