mirror of
https://github.com/Xahau/xahau-web.git
synced 2025-12-02 00:45:53 +00:00
Merge pull request #43 from Silkjaer/pr-add-search
Added search to documentation sidebar
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
---
|
||||
import SidebarPersister from '@astrojs/starlight/components/SidebarPersister.astro'
|
||||
import SidebarSublist from '@astrojs/starlight/components/SidebarSublist.astro'
|
||||
import Search from '@astrojs/starlight/components/Search.astro'
|
||||
|
||||
const { sidebar } = Astro.locals.starlightRoute
|
||||
---
|
||||
|
||||
<SidebarPersister>
|
||||
<Search class="hidden md:block" />
|
||||
<SidebarSublist sublist={sidebar} />
|
||||
</SidebarPersister>
|
||||
@@ -61,12 +61,18 @@ const { hasSidebar } = Astro.locals.starlightRoute
|
||||
.sidebar-content {
|
||||
height: 100%;
|
||||
min-height: max-content;
|
||||
padding: 1rem var(--sl-sidebar-pad-x) 0;
|
||||
padding: 88px var(--sl-sidebar-pad-x) 0;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
@media (min-width: 50rem) {
|
||||
.sidebar-content {
|
||||
padding: 1rem var(--sl-sidebar-pad-x) 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 50rem) {
|
||||
.sidebar-content::after {
|
||||
content: '';
|
||||
padding-bottom: 1px;
|
||||
|
||||
Reference in New Issue
Block a user