From b8c340113fa4e9c0814cb19b9a1bdea6edb56e0d Mon Sep 17 00:00:00 2001 From: Pranab Das <31024886+pranabdas@users.noreply.github.com> Date: Thu, 31 Oct 2024 19:27:24 +0800 Subject: [PATCH] styling: hero background sgv for dark mode --- src/css/custom.css | 4 +- static/img/hero-bg-dark.svg | 134 ++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+), 2 deletions(-) create mode 100644 static/img/hero-bg-dark.svg diff --git a/src/css/custom.css b/src/css/custom.css index d16d631..b08cfca 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -44,13 +44,13 @@ html[data-theme="dark"] { .hero--primary { --ifm-hero-text-color: var(--color-black); - /* --ifm-hero-background-color: rgba(0, 0, 0, 0.05); */ background: #eee url(/img/hero-bg.svg) center top no-repeat; background-attachment: fixed; } html[data-theme="dark"] .hero--primary { - background: rgb(1, 22, 39); + background: rgb(1, 22, 39) url(/img/hero-bg-dark.svg) center top no-repeat; + background-attachment: fixed; --ifm-hero-text-color: var(--ifm-color-secondary); } diff --git a/static/img/hero-bg-dark.svg b/static/img/hero-bg-dark.svg new file mode 100644 index 0000000..b0a3a1c --- /dev/null +++ b/static/img/hero-bg-dark.svg @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +