Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions src/lib/layouts/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,11 @@
</button>
<div class="aw-side-nav-scroll">
{#if parent}
<section
style:padding-bottom="16px"
style:border-bottom="1px solid #232325"
style:display="flex"
style:align-items="baseline"
>
<section class="aw-side-nav-wrapper-parent">
<a href={parent.href}>
<span class="icon-cheveron-left" aria-hidden="true" />
</a>

<span class="aw-eyebrow" style:width="100%" style:text-align="center">{parent.label}</span
>
<span class="aw-side-nav-wrapper-parent-title aw-eyebrow">{parent.label}</span>
</section>
{/if}
{#each navigation as navGroup}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/references/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{
label: 'Overview',
href: '/docs/references',
icon: 'icon-book'
icon: 'icon-view-grid'
}
]
},
Expand Down
9 changes: 7 additions & 2 deletions src/routes/docs/tutorials/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
<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';

$: variant = $page.url.pathname.endsWith('/tutorials')
? 'default'
: ('two-side-navs' as DocsLayoutVariant);
</script>

<Docs variant="default">
<Docs {variant}>
<Sidebar />
<slot />
</Docs>
3 changes: 2 additions & 1 deletion src/routes/docs/tutorials/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts">
import Docs from '$lib/layouts/Docs.svelte';
import Sidebar from '../Sidebar.svelte';
import { MainFooter } from '$lib/components';
</script>

Expand Down Expand Up @@ -521,7 +523,6 @@
</ul>
</section>
</div>

</article>

<MainFooter variant="docs" />
Expand Down
12 changes: 11 additions & 1 deletion src/scss/7-components/_side-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@
padding:pxToRem(16); padding-block-end:pxToRem(32);
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 {
flex:1; overflow-y:scroll; overflow-x:hidden;
Expand Down