cleanup: switch to a css-based navbar (#491)

* cleanup: remove dock options and make adaptive by default

* cleanup: switch to css-based navbar

* feat: add auto hide option
This commit is contained in:
Xylight authored and GitHub committed 2025-02-16 19:12:58 -08:00
1 parent b5ce17308a
commit 10f0ed208f
17 files changed
+110 -261

No files matched your search

@@ -1,6 +1,5 @@
<script lang="ts">
import { settings } from '$lib/settings.svelte'
import { contentPadding } from '../Shell.svelte'
interface Props {
pageHeader?: boolean
@@ -24,14 +23,11 @@
{pageHeader
? `w-[calc(100%+2rem)] sm:w-[calc(100%+3rem)]
bg-slate-50 dark:bg-zinc-950 -m-4 sm:-m-6 mb-0 sm:mb-0 sm:p-6 p-4
border-b border-slate-200 dark:border-zinc-800`
border-b border-slate-200 dark:border-zinc-800 margin`
: ''}
"
style="{pageHeader
? `margin-top: min(-12rem, calc(-1 * calc(${$contentPadding.top}px))); padding-top: max(12rem, calc(${$contentPadding.top}px));`
: ''} {style};
"
{style}
>
<h1
class="text-3xl font-medium flex gap-2 w-full
@@ -45,3 +41,17 @@
</div>
{/if}
</div>
<style>
.margin {
margin-top: -12rem;
padding-top: 12rem;
}
@media screen and (min-width: 1024px) {
.margin {
margin-top: -4rem;
padding-top: 4rem;
}
}
</style>