mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-06 07:22:07 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e65f8c46f9 | ||
|
|
082e1316c1 | ||
|
|
a4b5e72d82 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homepage",
|
"name": "homepage",
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
|
|||||||
@@ -524,7 +524,7 @@ export default function Wrapper({ initialSettings, fallback }) {
|
|||||||
const body = document.body;
|
const body = document.body;
|
||||||
|
|
||||||
html.classList.remove("dark", "scheme-dark", "scheme-light");
|
html.classList.remove("dark", "scheme-dark", "scheme-light");
|
||||||
html.classList.add(theme === "dark" ? "dark" : "");
|
html.classList.toggle("dark", theme === "dark");
|
||||||
html.classList.add(theme === "dark" ? "scheme-dark" : "scheme-light");
|
html.classList.add(theme === "dark" ? "scheme-dark" : "scheme-light");
|
||||||
|
|
||||||
html.classList.remove(...Array.from(html.classList).filter((cls) => cls.startsWith("theme-")));
|
html.classList.remove(...Array.from(html.classList).filter((cls) => cls.startsWith("theme-")));
|
||||||
|
|||||||
@@ -30,12 +30,13 @@ body,
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
background-color: rgb(var(--bg-color));
|
||||||
}
|
}
|
||||||
|
|
||||||
#background {
|
#background {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
z-index: -1;
|
z-index: 0;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|||||||
Reference in New Issue
Block a user