Skip to content

Commit

Permalink
styling: hero background sgv for dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Oct 31, 2024
1 parent d1d7511 commit b8c3401
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
134 changes: 134 additions & 0 deletions static/img/hero-bg-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8c3401

Please sign in to comment.