@@ -6,11 +6,9 @@ export const backdrop = css`
66 position : fixed;
77 inset : 0 ;
88 height : 100dvh ;
9-
109 transition-duration : 600ms ;
1110 transition-property : -webkit-backdrop-filter, backdrop-filter, opacity;
1211 transition-timing-function : ${ t ( '$ease.out.fast' ) } ;
13- -webkit-backdrop-filter : blur (1.5px );
1412 backdrop-filter : blur (1.5px );
1513 background-image : linear-gradient (to bottom, transparent 2rem , rgb (0 0 0 / 5% ) 50% );
1614
@@ -20,8 +18,7 @@ export const backdrop = css`
2018
2119 & [data-starting-style ],
2220 & [data-ending-style ] {
23- -webkit-backdrop-filter : blur (0px );
24- backdrop-filter : blur (0px );
21+ backdrop-filter : blur (0 );
2522 opacity : 0 ;
2623 }
2724
@@ -96,6 +93,7 @@ export const viewport = css(({ theme }) => ({
9693
9794export const viewportInner = css `
9895 position : relative;
96+
9997 /* Prevent children's margin collapse */
10098 display : flex;
10199 flex-direction : column;
@@ -174,7 +172,6 @@ export const navClose = css`
174172 background-color : ${ t ( '$color.gray.200' ) } ;
175173
176174 /* Blur the dividers behind */
177- -webkit-backdrop-filter : blur (1rem );
178175 backdrop-filter : blur (1rem );
179176
180177 & : focus-visible {
@@ -228,6 +225,7 @@ export const navLink = css`
228225 display : flex;
229226 gap : 0.675rem ;
230227 align-items : center;
228+
231229 /* @TODO - Fix the css processor so that you can use local css variables through t() */
232230 height : var (--mobileNavItemHeight );
233231 padding-inline : var (--mobileNavItemPaddingX );
@@ -244,7 +242,10 @@ export const navLink = css`
244242 }
245243
246244 @supports (-webkit-tap-highlight-color : black) {
245+ ---var : 1 ;
246+
247247 /* Applying background-color on :active shows it when touching items while scrolling */
248+
248249 /* This activates only on real link taps */
249250 -webkit-tap-highlight-color : ${ t ( '$color.gray.300' ) } ;
250251 }
0 commit comments