Skip to content

Commit

Permalink
Merge pull request #955 from multiversx/fix-bg-images-low-dpr
Browse files Browse the repository at this point in the history
Bg Images
  • Loading branch information
radumojic authored Aug 7, 2024
2 parents e1a8a2c + b3a0ed6 commit 46fa931
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/components/Homepage/homepage.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,8 @@ html[data-has-hydrated="true"][data-theme="dark"]:not(.docs-wrapper):not(

html[data-has-hydrated="true"]:not(.docs-wrapper):not(.search-page-wrapper)
#__docusaurus {
background: image-set(
url("/img/theme/astronaut.webp") 1x,
url("/img/theme/astronaut@2x.webp") 2x
)
right -20px top 40px no-repeat,
image-set(
url("/img/theme/glow-light.webp") 1x,
url("/img/theme/glow-light@2x.webp") 2x
)
right -180px top -150px no-repeat,
background: url("/img/theme/astronaut@2x.webp") right -20px top 40px no-repeat,
url("/img/theme/glow-light@2x.webp") right -180px top -150px no-repeat,
var(--ifm-background-color);
background-size: 40vw, 60vw, auto;
background-blend-mode: normal, difference, normal;
Expand All @@ -35,16 +27,8 @@ html[data-has-hydrated="true"][data-theme="dark"]:not(.docs-wrapper):not(
.search-page-wrapper
)
#__docusaurus {
background: image-set(
url("/img/theme/astronaut.webp") 1x,
url("/img/theme/astronaut@2x.webp") 2x
)
right -20px top 40px no-repeat,
image-set(
url("/img/theme/glow-dark.webp") 1x,
url("/img/theme/glow-dark@2x.webp") 2x
)
right -180px top -150px no-repeat,
background: url("/img/theme/astronaut@2x.webp") right -20px top 40px no-repeat,
url("/img/theme/glow-dark@2x.webp") right -180px top -150px no-repeat,
var(--ifm-background-color);
background-size: 40vw, 60vw, auto;
background-blend-mode: normal, lighten, normal;
Expand Down

0 comments on commit 46fa931

Please sign in to comment.