Skip to content

Commit 7befd8f

Browse files
Merge pull request #468 from sei-protocol/sidebar
Navbar, Sidebar size decrease, remove support button
2 parents 6398570 + 805f9ad commit 7befd8f

File tree

2 files changed

+64
-16
lines changed

2 files changed

+64
-16
lines changed

app/globals.css

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,3 +377,67 @@ aside,
377377
.dark .nextra-callout[class*='border-orange'] svg {
378378
color: rgba(253, 186, 116, 0.92) !important;
379379
}
380+
381+
/* Sidebar Compactness Overrides */
382+
383+
/* Reduce vertical padding for sidebar links */
384+
.nextra-sidebar ul li a,
385+
.nextra-sidebar ul li button,
386+
.nextra-mobile-nav ul li a,
387+
.nextra-mobile-nav ul li button {
388+
padding-top: 0.1rem !important;
389+
padding-bottom: 0.1rem !important;
390+
padding-left: 0.45rem !important;
391+
padding-right: 0.2rem !important;
392+
}
393+
394+
/* Reduce vertical spacing for section separators/headers */
395+
.nextra-sidebar-separator {
396+
margin-top: 1rem !important;
397+
margin-bottom: 0.5rem !important;
398+
}
399+
400+
/* Reduce general spacing in the sidebar */
401+
.nextra-sidebar ul {
402+
gap: 0.25rem;
403+
}
404+
405+
.nextra-sidebar .nextra-scrollbar,
406+
.nextra-mobile-nav .nextra-scrollbar {
407+
padding-left: 0.75rem !important;
408+
padding-right: 0.2rem !important;
409+
}
410+
411+
@media (min-width: 768px) {
412+
.nextra-sidebar[class*='x:w-64'] {
413+
width: var(--sei-docs-sidebar-width, 13rem) !important;
414+
min-width: var(--sei-docs-sidebar-width, 13rem) !important;
415+
max-width: var(--sei-docs-sidebar-width, 13rem) !important;
416+
flex-basis: var(--sei-docs-sidebar-width, 13rem) !important;
417+
}
418+
419+
.nextra-sidebar[class*='x:w-20'] {
420+
width: var(--sei-docs-sidebar-width-collapsed, 4.5rem) !important;
421+
min-width: var(--sei-docs-sidebar-width-collapsed, 4.5rem) !important;
422+
max-width: var(--sei-docs-sidebar-width-collapsed, 4.5rem) !important;
423+
flex-basis: var(--sei-docs-sidebar-width-collapsed, 4.5rem) !important;
424+
}
425+
426+
.nextra-sidebar ~ article {
427+
padding-left: 1.5rem !important;
428+
padding-right: 1.5rem !important;
429+
}
430+
}
431+
432+
@media (max-width: 767px) {
433+
.nextra-mobile-nav {
434+
inset: 0 auto 0 0 !important;
435+
width: var(--sei-docs-mobile-nav-width, min(86vw, 20rem)) !important;
436+
max-width: 20rem !important;
437+
border-right: 1px solid rgba(0, 0, 0, 0.08);
438+
}
439+
440+
.dark .nextra-mobile-nav {
441+
border-right-color: rgba(255, 255, 255, 0.08);
442+
}
443+
}

src/providers/DocsProviders.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ export default function DocsProviders({ children, pageMap }) {
4646
<>
4747
<div className='flex items-center gap-2'>
4848
<AskAIAssistant />
49-
<a
50-
href='https://support.sei.io/hc/en-us'
51-
target='_blank'
52-
rel='noopener noreferrer'
53-
className='text-sm hover:text-neutral-700 dark:hover:text-neutral-300 transition-colors'
54-
style={{ textDecoration: 'none' }}>
55-
Support
56-
</a>
5749
<SearchDynamic placeholder='Search docs...' />
5850
</div>
5951
</>
@@ -71,14 +63,6 @@ export default function DocsProviders({ children, pageMap }) {
7163
<div className='flex-grow flex justify-start'>
7264
<AskAIAssistant />
7365
</div>
74-
<a
75-
href='https://support.sei.io/hc/en-us'
76-
target='_blank'
77-
rel='noopener noreferrer'
78-
className='text-sm hover:text-neutral-700 dark:hover:text-neutral-300 transition-colors'
79-
style={{ textDecoration: 'none' }}>
80-
Support
81-
</a>
8266
<SearchDynamic placeholder='Search docs...' />
8367
{isHomepage && <ThemeSwitch />}
8468
</div>

0 commit comments

Comments
 (0)