mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Use hack to use fixed image as background in safari
This commit is contained in:
parent
42b5fa696a
commit
925e0230b1
@ -401,10 +401,22 @@ class PanelEnergy extends LitElement {
|
||||
padding-inline-start: env(safe-area-inset-left);
|
||||
padding-inline-end: env(safe-area-inset-right);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
/* Hack to support fixed background image on iOS */
|
||||
#view:after {
|
||||
display: block;
|
||||
content: "";
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
background: var(
|
||||
--lovelace-background,
|
||||
var(--primary-background-color)
|
||||
);
|
||||
background-attachment: local;
|
||||
z-index: -1;
|
||||
}
|
||||
#view > * {
|
||||
flex: 1 1 100%;
|
||||
|
@ -1074,10 +1074,22 @@ class HUIRoot extends LitElement {
|
||||
padding-inline-start: env(safe-area-inset-left);
|
||||
padding-inline-end: env(safe-area-inset-right);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
/* Hack to support fixed background image on iOS */
|
||||
#view:after {
|
||||
display: block;
|
||||
content: "";
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
background: var(
|
||||
--lovelace-background,
|
||||
var(--primary-background-color)
|
||||
);
|
||||
background-attachment: local;
|
||||
z-index: -1;
|
||||
}
|
||||
#view > * {
|
||||
flex: 1 1 100%;
|
||||
|
Loading…
x
Reference in New Issue
Block a user