Skip to content

Commit

Permalink
fix(styles): large blur radius is causing color issues with safari
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Oct 22, 2023
1 parent 56b3ce5 commit a31e143
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/index.md
Expand Up @@ -33,13 +33,14 @@ features:
title: Ship Fast Sites
details: Fast initial load with static HTML, fast post-load navigation with client-side routing.
---

<style>
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);

--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
--vp-home-hero-image-filter: blur(40px);
--vp-home-hero-image-filter: blur(44px);
}

@media (min-width: 640px) {
Expand All @@ -50,7 +51,7 @@ features:

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(72px);
--vp-home-hero-image-filter: blur(68px);
}
}
</style>
4 changes: 2 additions & 2 deletions template/.vitepress/theme/style.css
Expand Up @@ -103,7 +103,7 @@
#bd34fe 50%,
#47caff 50%
);
--vp-home-hero-image-filter: blur(40px);
--vp-home-hero-image-filter: blur(44px);
}

@media (min-width: 640px) {
Expand All @@ -114,7 +114,7 @@

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(72px);
--vp-home-hero-image-filter: blur(68px);
}
}

Expand Down

0 comments on commit a31e143

Please sign in to comment.