File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
packages/theme/src/styles Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 8787}
8888
8989.navbar {
90- backdrop-filter : blur (10px );
91- background : rgba (255 , 255 , 255 , 0.95 );
90+ background : transparent;
9291 box-shadow : var (--ifm-navbar-shadow );
9392 color : var (--hk-color-dark );
9493 padding : 0.75rem 2rem ;
@@ -100,11 +99,24 @@ body {
10099 box-shadow 0.3s ease;
101100}
102101
102+ .navbar ::before {
103+ content : "" ;
104+ position : absolute;
105+ inset : 0 ;
106+ background : rgba (255 , 255 , 255 , 0.95 );
107+ backdrop-filter : blur (10px );
108+ -webkit-backdrop-filter : blur (10px );
109+ z-index : -1 ;
110+ }
111+
103112[data-theme = "dark" ] .navbar {
104- background : rgba (37 , 40 , 50 , 0.95 );
105113 color : var (--hk-color-light );
106114}
107115
116+ [data-theme = "dark" ] .navbar ::before {
117+ background : rgba (37 , 40 , 50 , 0.95 );
118+ }
119+
108120.navbar__title {
109121 display : flex;
110122 align-items : center;
You can’t perform that action at this time.
0 commit comments