Set background image url by css

Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
Joshua Castle committed 2024-03-03 10:21:26 -08:00
1 parent 3290e2cb52
commit 4b0f78c93f
3 files changed
+10 -8

No files matched your search

+9
View File
@@ -1,3 +1,11 @@
:root {
--ifm-background-image-url: url('/img/site/split-background-light.png');
}
[data-theme='dark'] {
--ifm-background-image-url: url('/img/site/split-background.png');
}
.heroBanner {
background-repeat: no-repeat;
background-position-x: center;
@@ -9,6 +17,7 @@
overflow: hidden;
color: var(--ifm-font-color-base);
background-color: var(--ifm-background-color);
background-image: var(--ifm-background-image-url);
}
.heroContent {