Skip to content

Commit 0e1cd2c

Browse files
authored
style updates (#854)
* style updates * remove navbar hiding on small screens (this was a test) * align icons and nav labels to top * lint * remove unnecessary w-full
1 parent 6e26e28 commit 0e1cd2c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

website/src/NextraLayout.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,18 +216,18 @@ const NavigationItem = ({ title, icon, onClick, className, children, ...props }:
216216
>
217217
<span
218218
className={`
219-
flex h-5 w-4 shrink-0 items-center justify-center text-white/64 transition
219+
flex size-6 shrink-0 items-center justify-center text-white/64 transition
220220
in-clickable-hocus-visible:text-white
221221
in-clickable-[[aria-current=true]]:text-purple
222222
in-clickable-[[aria-current=true]]:transition-none
223-
nested-icon:size-3.5
223+
nested-icon:size-4
224224
`}
225225
>
226226
{icon}
227227
</span>
228228
<span
229229
className={`
230-
text-p14 text-white/64 transition
230+
text-p16 text-white/64 transition
231231
in-clickable-hocus-visible:text-white
232232
in-clickable-[[aria-current=true]]:text-white
233233
in-clickable-[[aria-current=true]]:transition-none
@@ -247,7 +247,7 @@ const NavigationItem = ({ title, icon, onClick, className, children, ...props }:
247247
/>
248248
<span
249249
className={`
250-
size-1.5 rounded-full bg-white/8 transition
250+
size-2 rounded-full bg-white/8 transition
251251
in-clickable-hocus-visible:bg-white/16
252252
in-clickable-[[aria-current=true]]:bg-purple
253253
in-clickable-[[aria-current=true]]:transition-none
@@ -625,14 +625,15 @@ export default function NextraLayout({ children, pageOpts, pageProps }: NextraTh
625625

626626
<main>
627627
<header className="h-16 border-b border-white/8"></header>
628-
<div className="px-26 py-12">
628+
<div className="px-8 py-12 md:px-26">
629629
<article
630630
className={`
631-
text-p16 leading-7 text-white/64
632-
mdx-[h1]:text-h24
633-
mdx-[h2]:text-h20
634-
mdx-[h3]:text-h18
635-
mdx-[h4,h5,h6]:text-h16
631+
text-p20 mx-auto max-w-[min(50vw,80ch)]
632+
leading-9 text-white/64
633+
mdx-[h1]:text-h40
634+
mdx-[h2]:text-h32
635+
mdx-[h3]:text-h24
636+
mdx-[h4,h5,h6]:text-h20
636637
mdx-[:is(ul,ol)_:is(ul,ol)]:mt-2
637638
mdx-[ul,ol]:flex
638639
mdx-[ol]:list-decimal

0 commit comments

Comments
 (0)