Supervisor style changes (#5706)

This commit is contained in:
Joakim Sørensen 2020-05-02 14:42:12 +02:00 committed by GitHub
parent 6e38a80efc
commit f16a674a39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 29 additions and 32 deletions

View File

@ -123,6 +123,9 @@ class HassioAddonStore extends LitElement {
hassio-addon-repository {
margin-top: 24px;
}
hassio-search-input {
--iron-icon-fill-color: var(--primary-text-color);
}
`;
}
}

View File

@ -59,13 +59,10 @@ class HassioAddonConfigDashboard extends LitElement {
haStyle,
hassioStyle,
css`
@media screen and (min-width: 1024px) {
.content {
width: 50%;
margin: auto;
margin-top: 8px;
max-width: 1024px;
}
.content {
margin: auto;
padding: 8px;
max-width: 1024px;
}
hassio-addon-network,
hassio-addon-audio,

View File

@ -43,7 +43,8 @@ class HassioAddonConfig extends LitElement {
const valid = editor ? editor.isValid : true;
return html`
<paper-card heading="Config">
<h1>${this.addon.name}</h1>
<paper-card heading="Configuration">
<div class="card-content">
<ha-yaml-editor
@value-changed=${this._configChanged}

View File

@ -56,12 +56,10 @@ class HassioAddonDocumentationDashboard extends LitElement {
haStyle,
hassioStyle,
css`
@media screen and (min-width: 1024px) {
.content {
width: 50%;
margin: auto;
max-width: 1024px;
}
.content {
margin: auto;
padding: 8px;
max-width: 1024px;
}
`,
];

View File

@ -45,13 +45,10 @@ class HassioAddonInfoDashboard extends LitElement {
haStyle,
hassioStyle,
css`
@media screen and (min-width: 1024px) {
.content {
width: 50%;
margin: auto;
margin-top: 8px;
max-width: 1024px;
}
.content {
margin: auto;
padding: 8px;
max-width: 1024px;
}
`,
];

View File

@ -42,13 +42,10 @@ class HassioAddonLogDashboard extends LitElement {
haStyle,
hassioStyle,
css`
@media screen and (min-width: 1024px) {
.content {
width: 50%;
margin: auto;
margin-top: 8px;
max-width: 1024px;
}
.content {
margin: auto;
padding: 8px;
max-width: 1024px;
}
`,
];

View File

@ -13,7 +13,6 @@ import {
fetchHassioAddonLogs,
HassioAddonDetails,
} from "../../../../src/data/hassio/addon";
import "../../../../src/layouts/loading-screen";
import { haStyle } from "../../../../src/resources/styles";
import { HomeAssistant } from "../../../../src/types";
import "../../components/hassio-ansi-to-html";
@ -36,14 +35,15 @@ class HassioAddonLogs extends LitElement {
protected render(): TemplateResult {
return html`
<paper-card heading="Log">
<h1>${this.addon.name}</h1>
<paper-card>
${this._error ? html` <div class="errors">${this._error}</div> ` : ""}
<div class="card-content">
${this._content
? html`<hassio-ansi-to-html
.content=${this._content}
></hassio-ansi-to-html>`
: html`<loading-screen></loading-screen>`}
: ""}
</div>
<div class="card-actions">
<mwc-button @click=${this._refresh}>Refresh</mwc-button>

View File

@ -4,8 +4,12 @@ export const hassioStyle = css`
.content {
margin: 8px;
}
h1 {
h1,
.description,
.card-content {
color: var(--primary-text-color);
}
h1 {
font-size: 2em;
margin-bottom: 8px;
font-family: var(--paper-font-headline_-_font-family);