mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 20:26:39 +00:00
parent
63a2d9dd18
commit
90e32b7e45
@ -14,9 +14,8 @@ export class HuiUnavailable extends LitElement {
|
|||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
return html`
|
return html`
|
||||||
<div class="disabled-overlay">
|
<div class="disabled-overlay"></div>
|
||||||
<div>${this.text}</div>
|
<div class="disabled-overlay-text">${this.text}</div>
|
||||||
</div>
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,11 +30,11 @@ export class HuiUnavailable extends LitElement {
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: var(--state-icon-unavailable-color);
|
background-color: var(--state-icon-unavailable-color);
|
||||||
opacity: 0.5;
|
opacity: 0.6;
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
.disabled-overlay div {
|
.disabled-overlay-text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
@ -44,6 +43,8 @@ export class HuiUnavailable extends LitElement {
|
|||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
-ms-transform: translate(-50%, -50%);
|
-ms-transform: translate(-50%, -50%);
|
||||||
|
z-index: 50;
|
||||||
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user