mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-09 21:07:46 +00:00
fix: sidenav and tutorials
This commit is contained in:
@@ -46,18 +46,11 @@
|
|||||||
</button>
|
</button>
|
||||||
<div class="aw-side-nav-scroll">
|
<div class="aw-side-nav-scroll">
|
||||||
{#if parent}
|
{#if parent}
|
||||||
<section
|
<section class="aw-side-nav-wrapper-parent">
|
||||||
style:padding-bottom="16px"
|
|
||||||
style:border-bottom="1px solid #232325"
|
|
||||||
style:display="flex"
|
|
||||||
style:align-items="baseline"
|
|
||||||
>
|
|
||||||
<a href={parent.href}>
|
<a href={parent.href}>
|
||||||
<span class="icon-cheveron-left" aria-hidden="true" />
|
<span class="icon-cheveron-left" aria-hidden="true" />
|
||||||
</a>
|
</a>
|
||||||
|
<span class="aw-side-nav-wrapper-parent-title aw-eyebrow">{parent.label}</span>
|
||||||
<span class="aw-eyebrow" style:width="100%" style:text-align="center">{parent.label}</span
|
|
||||||
>
|
|
||||||
</section>
|
</section>
|
||||||
{/if}
|
{/if}
|
||||||
{#each navigation as navGroup}
|
{#each navigation as navGroup}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
{
|
{
|
||||||
label: 'Overview',
|
label: 'Overview',
|
||||||
href: '/docs/references',
|
href: '/docs/references',
|
||||||
icon: 'icon-book'
|
icon: 'icon-view-grid'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Docs from '$lib/layouts/Docs.svelte';
|
import { page } from '$app/stores';
|
||||||
|
import Docs, { type DocsLayoutVariant } from '$lib/layouts/Docs.svelte';
|
||||||
import Sidebar from '../Sidebar.svelte';
|
import Sidebar from '../Sidebar.svelte';
|
||||||
|
|
||||||
|
$: variant = $page.url.pathname.endsWith('/tutorials')
|
||||||
|
? 'default'
|
||||||
|
: ('two-side-navs' as DocsLayoutVariant);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Docs variant="default">
|
<Docs {variant}>
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
<slot />
|
<slot />
|
||||||
</Docs>
|
</Docs>
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import Docs from '$lib/layouts/Docs.svelte';
|
||||||
|
import Sidebar from '../Sidebar.svelte';
|
||||||
import { MainFooter } from '$lib/components';
|
import { MainFooter } from '$lib/components';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -521,7 +523,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<MainFooter variant="docs" />
|
<MainFooter variant="docs" />
|
||||||
|
|||||||
@@ -27,7 +27,17 @@
|
|||||||
padding:pxToRem(16); padding-block-end:pxToRem(32);
|
padding:pxToRem(16); padding-block-end:pxToRem(32);
|
||||||
background-color:hsl(var(--p-side-nav-bg-color)); transition:var(--transition);
|
background-color:hsl(var(--p-side-nav-bg-color)); transition:var(--transition);
|
||||||
|
|
||||||
|
&-parent {
|
||||||
|
padding-bottom: 16px;
|
||||||
|
border-block-end: 1px solid hsl(var(--aw-color-smooth));
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
|
||||||
|
&-title {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&-scroll {
|
&-scroll {
|
||||||
flex:1; overflow-y:scroll; overflow-x:hidden;
|
flex:1; overflow-y:scroll; overflow-x:hidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user