feat: use browser theme by default for loading background
This commit is contained in:
parent
7b2c97a9d0
commit
36f9ebb8f1
@ -51,7 +51,8 @@ const fix = () => {
|
||||
if (body) body.style.setProperty("overflow-y", "unset", "important");
|
||||
if (facebook) facebook.style.setProperty("position", "unset", "important");
|
||||
if (html) html.style.setProperty("overflow-y", "unset", "important");
|
||||
if (!loading) html.style.setProperty("opacity", "1", "important");
|
||||
if (body && !loading) body.style.setProperty("opacity", "1");
|
||||
if (html && !loading) html.style.setProperty("background-color", "initial");
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -1,3 +1,9 @@
|
||||
html {
|
||||
opacity: 0 !important;
|
||||
body {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
html {
|
||||
background-color: #424242;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user