Skip to content

Commit

Permalink
support webkit css rules
Browse files Browse the repository at this point in the history
  • Loading branch information
stefkn committed Aug 2, 2024
1 parent f0494d1 commit 35ce84a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,13 @@ const allPosts = await getCollection("posts");
}
.shaped {
clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 39% 0%);
-webkit-clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 39% 0%);
backdrop-filter: blur(4.2px);
border-radius: 12px;

@media (max-width: 700px) {
clip-path: polygon(0% 0%, 0% 100%, 170% 180%, 59% 0%);
-webkit-clip-path: polygon(0% 0%, 0% 100%, 170% 180%, 59% 0%);
}
}
.shape {
Expand All @@ -202,10 +204,12 @@ const allPosts = await getCollection("posts");
height: 22rem;
position: relative;
clip-path: polygon(100% 0%, 100% 100%, 100% 100%, 0% 0%);
-webkit-clip-path: polygon(100% 0%, 100% 100%, 100% 100%, 0% 0%);
shape-outside: polygon(100% 0%, 100% 100%, 100% 100%, -20% 0%);

@media (max-width: 700px) {
clip-path: polygon(40% 0%, 40% 0%, 100% 100%, 100% 0%);
-webkit-clip-path: polygon(40% 0%, 40% 0%, 100% 100%, 100% 0%);
shape-outside: polygon(40% 0%, 40% 0%, 100% 100%, 100% 0%);
}
}
Expand Down

0 comments on commit 35ce84a

Please sign in to comment.