mirror of
				https://github.com/Xahau/xahau-web.git
				synced 2025-11-04 04:15:47 +00:00 
			
		
		
		
	Fixed sidebar top padding on mobile
This commit is contained in:
		@@ -7,6 +7,6 @@ const { sidebar } = Astro.locals.starlightRoute
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<SidebarPersister>
 | 
			
		||||
	<Search />
 | 
			
		||||
	<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