Skip to content

Commit 2d8c626

Browse files
committed
fix: color inconsistency when blur effect is not supported
1 parent 6af6348 commit 2d8c626

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

themes/pure-ejs/assets/css/notablog.css

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
:root {
2+
--bg: rgb(250, 250, 246);
3+
--bg-blur: rgba(250, 250, 246, 0.4);
4+
}
5+
16
body {
2-
background: rgb(250, 250, 246);
7+
background: var(--bg);
38
}
49

510
/* Navbar */
@@ -16,7 +21,7 @@ body {
1621
height: 50px;
1722
padding: 10px 20px;
1823
/* Background blur stuff. */
19-
background-color: rgba(250, 250, 246, 0.4);
24+
background-color: var(--bg-blur);
2025
-webkit-backdrop-filter: blur(20px);
2126
backdrop-filter: blur(20px);
2227
overflow-x: auto;
@@ -303,7 +308,7 @@ body {
303308
@supports (not (backdrop-filter: blur(20px))) and
304309
(not (-webkit-backdrop-filter: blur(20px))) {
305310
.Navbar {
306-
background-color: white;
311+
background-color: var(--bg);
307312
}
308313
}
309314

0 commit comments

Comments
 (0)