Skip to content

Commit

Permalink
fix: app-shell backdrop fallback for Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
foxeyes committed Apr 29, 2022
1 parent 8fdeaf7 commit f18ecc5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions assets/js/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,22 @@ header {
background-color: rgba(0, 0, 0, .4);
}
nav {
--l-bg-clr: rgba(60, 60, 60, .9);
--blur: 6px;
display: flex;
justify-content: center;
position: sticky;
z-index: 10000;
top: 0;
background-color: rgba(255, 255, 255, .1);
background-color: var(--l-bg-clr);
height: 100%;
backdrop-filter: blur(6px);
}
@supports ((-webkit-backdrop-filter: blur(var(--blur))) or (backdrop-filter: blur(var(--blur)))) {
nav {
--l-bg-clr: rgba(255, 255, 255, .1);
backdrop-filter: blur(var(--blur));
-webkit-backdrop-filter: blur(var(--blur));
}
}
nav > div {
display: flex;
Expand Down

0 comments on commit f18ecc5

Please sign in to comment.