Skip to content

Commit

Permalink
Disable styles that break rendering on Safari iPhone (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Apr 15, 2024
1 parent e72f1e1 commit 9c6a47a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions _sass/pages/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@

background-image: url(/assets/home/pattern.svg);
background-repeat: no-repeat;
background-size: clamp(30vw, max(80rem, 50vw), 250vw) auto;
background-position: clamp(-15vw, -40rem + 50vw, 0px) top;

// FIXME: Disabled as a workaround to fix rendering in Safari on iPhone
// See https://github.com/crystal-lang/crystal-website/issues/758#issuecomment-2053688906
// background-size: clamp(30vw, max(80rem, 50vw), 250vw) auto;
// background-position: clamp(-15vw, -40rem + 50vw, 0px) top;
}

> * {
Expand Down

0 comments on commit 9c6a47a

Please sign in to comment.