diff --git a/src/app.css b/src/app.css index 306b0eb..f1ce365 100644 --- a/src/app.css +++ b/src/app.css @@ -1,3 +1,12 @@ +@property --theme-color { + syntax: ""; + inherits: true; +} +@property --back-color { + syntax: ""; + inherits: true; +} + /* theme color */ body, body.light { --color-scheme: light; diff --git a/src/routes/(DefaultStyle)/+layout.svelte b/src/routes/(DefaultStyle)/+layout.svelte index 8bfa6b2..d36c022 100644 --- a/src/routes/(DefaultStyle)/+layout.svelte +++ b/src/routes/(DefaultStyle)/+layout.svelte @@ -51,6 +51,7 @@ display: flex; flex-direction: column; background-color: var(--back-color); + transition: background-color 1s; min-height: 100vh; } @@ -76,7 +77,7 @@ & header { background-color: var(--theme-color); height: 100%; - transition: height .4s, transform .4s; + transition: height .4s, transform .4s background-color 1s; &.hide { height: 40px; @media(width<1000px) {