Skip to content

Commit 1292ec9

Browse files
authored
add firefox fallback
1 parent 7e7eee9 commit 1292ec9

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

Diff for: 55-glass dashboard/style.css

+15-8
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,27 @@
2121
}
2222

2323
.container {
24-
background-color: white;
25-
background: linear-gradient(
26-
to right bottom,
27-
rgba(255, 255, 255, 0.7),
28-
rgba(255, 255, 255, 0.3)
29-
);
24+
background-color: rgba(255, 255, 255, 0.9); /* slightly transparent fallback for Firefox */
3025
min-height: 80vh;
3126
width: 100%;
3227
border-radius: 2rem;
3328
z-index: 2;
34-
backdrop-filter: blur(2rem);
35-
-webkit-backdrop-filter: blur(2rem);
3629
display: flex;
3730
}
3831

32+
/* if backdrop support: very transparent and blurred */
33+
@supports ((backdrop-filter: blur(2rem)) or (-webkit-backdrop-filter: blur(2rem))) {
34+
.container {
35+
background: linear-gradient(
36+
to right bottom,
37+
rgba(255, 255, 255, 0.7),
38+
rgba(255, 255, 255, 0.3)
39+
);
40+
-webkit-backdrop-filter: blur(2rem);
41+
backdrop-filter: blur(2rem);
42+
}
43+
}
44+
3945
.dashboard {
4046
flex: 1;
4147
display: flex;
@@ -247,3 +253,4 @@ h3 {
247253
left: 60%;
248254
}
249255
}
256+

0 commit comments

Comments
 (0)