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
65 changes: 1 addition & 64 deletions apps/svelte.dev/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,7 @@

<Shell nav_visible={$page.route.id !== '/(authed)/playground/[id]/embed'}>
{#snippet top_nav()}
<Nav title={data.nav_title} links={data.nav_links}>
{#snippet search()}
<Search />
{/snippet}

{#snippet external_links()}
<a href="/chat" data-icon="discord" title="Discord Chat">
<span>Discord</span>
</a>

<a href="https://github.com/sveltejs/svelte" data-icon="github" title="GitHub Repo">
<span>GitHub</span>
</a>
{/snippet}
</Nav>
<Nav title={data.nav_title} links={data.nav_links} />
{/snippet}

{#snippet children()}
Expand All @@ -67,52 +53,3 @@
{#if browser}
<SearchBox />
{/if}

<style>
:global(:root) {
color-scheme: light dark;
}

:global(html, body) {
height: 100%;
width: 100%;
}

@media (min-width: 800px) {
[data-icon] {
background: no-repeat 50% 50%;
background-size: calc(100% - 1rem) auto;
padding: 0 0.5rem;
height: 100%;

/* visually hidden, but visible to screen readers */
span {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
}

[data-icon='discord'] {
width: 3.4rem;
background-image: url($lib/icons/discord-light.svg);

:global(.dark) & {
background-image: url($lib/icons/discord-dark.svg);
}
}

[data-icon='github'] {
width: 3rem;
background-image: url($lib/icons/github-light.svg);

:global(.dark) & {
background-image: url($lib/icons/github-dark.svg);
}
}
}
</style>
1 change: 0 additions & 1 deletion packages/site-kit/src/lib/actions/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export { click_outside } from './click-outside';
export { focus_outside } from './focus-outside';
export { focusable_children, trap } from './focus';
export { root_scroll } from './root-scroll';
export { legacy_details } from './legacy-details';
15 changes: 0 additions & 15 deletions packages/site-kit/src/lib/actions/root-scroll.ts

This file was deleted.

Loading
Loading