@@ -97,7 +97,7 @@ function Link({
97
97
return (
98
98
< NextLink
99
99
href = { `${ href } ` }
100
- className = "inline text-primary dark:text-primary-dark hover:text-link hover:dark:text-link-dark border-b border- link border-opacity-0 hover:border-opacity-100 duration-100 ease-in transition leading-normal "
100
+ className = "inline leading-normal transition duration-100 ease-in border-b border-opacity-0 text-primary dark:text-primary-dark hover:text-link hover:dark:text-link-dark border-link hover:border-opacity-100"
101
101
{ ...props } >
102
102
{ children }
103
103
</ NextLink >
@@ -233,8 +233,8 @@ export default function TopNav({
233
233
'duration-300 backdrop-filter backdrop-blur-lg backdrop-saturate-200 transition-shadow bg-opacity-90 items-center w-full flex justify-between bg-wash dark:bg-wash-dark dark:bg-opacity-95 px-1.5 lg:pe-5 lg:ps-4 z-50' ,
234
234
{ 'dark:shadow-nav-dark shadow-nav' : isScrolled || isOpen }
235
235
) } >
236
- < div className = "h-16 w-full gap-0 sm:gap-3 flex items-center justify-between " >
237
- < div className = "3xl: flex-1 flex flex-row " >
236
+ < div className = "flex items-center justify-between w-full h-16 gap-0 sm:gap-3" >
237
+ < div className = "flex flex-row 3xl: flex-1 " >
238
238
< button
239
239
type = "button"
240
240
aria-label = "Menu"
@@ -247,7 +247,7 @@ export default function TopNav({
247
247
) } >
248
248
{ isOpen ? < IconClose /> : < IconHamburger /> }
249
249
</ button >
250
- < div className = "3xl:flex-1 flex align-center" >
250
+ < div className = "flex 3xl:flex-1 align-center" >
251
251
< NextLink
252
252
href = "/"
253
253
className = { `active:scale-95 overflow-hidden transition-transform relative items-center text-primary dark:text-primary-dark p-1 whitespace-nowrap outline-link rounded-full 3xl:rounded-xl inline-flex text-lg font-normal gap-2` } >
@@ -260,16 +260,16 @@ export default function TopNav({
260
260
</ NextLink >
261
261
</ div >
262
262
</ div >
263
- < div className = "hidden md:flex flex-1 justify-center items-center w-full 3xl:w-auto 3xl:shrink-0 3xl:justify-center" >
263
+ < div className = "items-center justify-center flex-1 hidden w-full md:flex 3xl:w-auto 3xl:shrink-0 3xl:justify-center" >
264
264
< button
265
265
type = "button"
266
266
className = { cn (
267
267
'flex 3xl:w-[56rem] 3xl:mx-0 relative ps-4 pe-1 py-1 h-10 bg-gray-30/20 dark:bg-gray-40/20 outline-none focus:outline-link betterhover:hover:bg-opacity-80 pointer items-center text-start w-full text-gray-30 rounded-full align-middle text-base'
268
268
) }
269
269
onClick = { onOpenSearch } >
270
- < IconSearch className = "me-3 align-middle text-gray-30 shrink-0 group-betterhover:hover:text-gray-70" />
270
+ < IconSearch className = "align-middle me-3 text-gray-30 shrink-0 group-betterhover:hover:text-gray-70" />
271
271
Search
272
- < span className = "ms-auto hidden sm:flex item-center me-1" >
272
+ < span className = "hidden ms-auto sm:flex item-center me-1" >
273
273
< Kbd data-platform = "mac" > ⌘</ Kbd >
274
274
< Kbd data-platform = "win" wide >
275
275
Ctrl
@@ -301,9 +301,9 @@ export default function TopNav({
301
301
< button
302
302
aria-label = "Search"
303
303
type = "button"
304
- className = "active:scale-95 transition-transform flex md:hidden w-12 h-12 rounded-full items-center justify-center hover:bg-secondary-button hover:dark:bg-secondary-button-dark outline-link"
304
+ className = "flex items-center justify-center w-12 h-12 transition-transform rounded-full active:scale-95 md:hidden hover:bg-secondary-button hover:dark:bg-secondary-button-dark outline-link"
305
305
onClick = { onOpenSearch } >
306
- < IconSearch className = "align-middle w-5 h-5" />
306
+ < IconSearch className = "w-5 h-5 align-middle " />
307
307
</ button >
308
308
</ div >
309
309
< div className = "flex dark:hidden" >
@@ -313,7 +313,7 @@ export default function TopNav({
313
313
onClick = { ( ) => {
314
314
window . __setPreferredTheme ( 'dark' ) ;
315
315
} }
316
- className = "active:scale-95 transition-transform flex w-12 h-12 rounded-full items-center justify-center hover:bg-primary/5 hover:dark:bg-primary-dark/5 outline-link" >
316
+ className = "flex items-center justify-center w-12 h-12 transition-transform rounded-full active:scale-95 hover:bg-primary/5 hover:dark:bg-primary-dark/5 outline-link" >
317
317
{ darkIcon }
318
318
</ button >
319
319
</ div >
@@ -324,7 +324,7 @@ export default function TopNav({
324
324
onClick = { ( ) => {
325
325
window . __setPreferredTheme ( 'light' ) ;
326
326
} }
327
- className = "active:scale-95 transition-transform flex w-12 h-12 rounded-full items-center justify-center hover:bg-primary/5 hover:dark:bg-primary-dark/5 outline-link" >
327
+ className = "flex items-center justify-center w-12 h-12 transition-transform rounded-full active:scale-95 hover:bg-primary/5 hover:dark:bg-primary-dark/5 outline-link" >
328
328
{ lightIcon }
329
329
</ button >
330
330
</ div >
@@ -334,7 +334,7 @@ export default function TopNav({
334
334
target = "_blank"
335
335
rel = "noreferrer noopener"
336
336
aria-label = "Open on GitHub"
337
- className = "active:scale-95 transition-transform flex w-12 h-12 rounded-full items-center justify-center hover:bg-primary/5 hover:dark:bg-primary-dark/5 outline-link" >
337
+ className = "flex items-center justify-center w-12 h-12 transition-transform rounded-full active:scale-95 hover:bg-primary/5 hover:dark:bg-primary-dark/5 outline-link" >
338
338
{ githubIcon }
339
339
</ Link >
340
340
</ div >
@@ -349,13 +349,13 @@ export default function TopNav({
349
349
className = "overflow-y-scroll isolate no-bg-scrollbar lg:w-[342px] grow bg-wash dark:bg-wash-dark" >
350
350
< aside
351
351
className = { cn (
352
- `lg:grow lg:flex flex-col w-full pb-8 lg:pb-0 lg:max-w-xs z-50` ,
352
+ `lg:grow lg:flex flex-col w-full pb-8 lg:pb-0 lg:max-w-custom- xs z-50` ,
353
353
isOpen ? 'block z-40' : 'hidden lg:block'
354
354
) } >
355
355
< nav
356
356
role = "navigation"
357
357
style = { { '--bg-opacity' : '.2' } as React . CSSProperties } // Need to cast here because CSS vars aren't considered valid in TS types (cuz they could be anything)
358
- className = "w-full lg:h-auto grow pe-0 lg:pe-5 pt-4 lg:py-6 md:pt-4 lg:pt-4 scrolling-touch scrolling-gpu" >
358
+ className = "w-full pt-4 scrolling-touch lg:h-auto grow pe-0 lg:pe-5 lg:py-6 md:pt-4 lg:pt-4 scrolling-gpu" >
359
359
{ /* No fallback UI so need to be careful not to suspend directly inside. */ }
360
360
< Suspense fallback = { null } >
361
361
< div className = "ps-3 xs:ps-5 xs:gap-0.5 xs:text-base overflow-x-auto flex flex-row lg:hidden text-base font-bold text-secondary dark:text-secondary-dark" >
@@ -378,7 +378,7 @@ export default function TopNav({
378
378
</ div >
379
379
< div
380
380
role = "separator"
381
- className = "ms-5 mt-4 mb-2 border-b border-border dark:border-border-dark"
381
+ className = "mt-4 mb-2 border-b ms-5 border-border dark:border-border-dark"
382
382
/>
383
383
< SidebarRouteTree
384
384
// Don't share state between the desktop and mobile versions.
0 commit comments