impr: rewrite navbar styling to use tailwind-guided normal css
This commit is contained in:
3 files changed
+31
-13
No files matched your search
@@ -30,16 +30,7 @@
|
||||
</script>
|
||||
|
||||
<CommandsWrapper bind:open={promptOpen} />
|
||||
<nav
|
||||
class={[
|
||||
'w-full mx-auto z-50',
|
||||
'md:gap-5 gap-2 flex flex-row items-center justify-evenly p-2 px-8 md:px-2',
|
||||
'box-border p-0.5 duration-150 @container *:max-md:flex-1',
|
||||
clazz,
|
||||
]}
|
||||
{style}
|
||||
data-sveltekit-preload-data
|
||||
>
|
||||
<nav class={['navbar @container', clazz]} {style} data-sveltekit-preload-data>
|
||||
<NavButton
|
||||
oncontextmenu={(e: Event) => {
|
||||
e.preventDefault()
|
||||
@@ -166,3 +157,30 @@
|
||||
{/snippet}
|
||||
</Menu>
|
||||
</nav>
|
||||
|
||||
<style>
|
||||
@reference '../../../app.css';
|
||||
|
||||
.navbar {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-evenly;
|
||||
padding: calc(var(--spacing) * 2);
|
||||
box-sizing: border-box;
|
||||
|
||||
@variant max-md {
|
||||
padding-left: calc(var(--spacing) * 8);
|
||||
padding-right: calc(var(--spacing) * 8);
|
||||
|
||||
& > :global(*) {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@variant md {
|
||||
gap: calc(var(--spacing) * 6);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -16,7 +16,7 @@
|
||||
}
|
||||
|
||||
const paddingClass = {
|
||||
none: 'p-0',
|
||||
none: '',
|
||||
sm: 'p-2',
|
||||
md: 'p-4',
|
||||
lg: 'p-5',
|
||||
|
||||
@@ -165,8 +165,8 @@
|
||||
tags={tags.tags}
|
||||
/>
|
||||
</div>
|
||||
<h1 class="font-medium text-xl leading-5">
|
||||
<Markdown source={tags.title ?? data.data.value.post.post.name} />
|
||||
<h1 class="font-medium font-display text-xl leading-5 tracking-tight">
|
||||
<Markdown inline source={tags.title ?? data.data.value.post.post.name} />
|
||||
</h1>
|
||||
</header>
|
||||
<PostMedia
|
||||
|
||||
Reference in new issue
Block a user