Skip to content

Commit

Permalink
add css supports to improve backdrop-filter header
Browse files Browse the repository at this point in the history
  • Loading branch information
insanj committed Apr 3, 2023
1 parent 1c69e2e commit 58eed9c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,17 @@
padding: 20px;
border-bottom: 4px solid rgba(255, 255, 255, 0.1);

background: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(20px);
background: rgba(0, 0, 0, 0.97);
}

@supports (backdrop-filter: blur(20px)) {
header {
background: rgba(0, 0, 0, 0.2);
backdrop-filter: blur(20px);
}
}


header > h1, header > h3 {
z-index: 2;
text-shadow: 0px 2px 3px 4px rgba(0, 0, 0, 1);
Expand Down

0 comments on commit 58eed9c

Please sign in to comment.