Skip to content
Closed
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
22 changes: 3 additions & 19 deletions packages/site-kit/src/lib/nav/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ Top navigation bar for the application. It provides a slot for the left side, th
{/if}

<div class="desktop">
<div class="center-area">
{@render search?.()}
</div>

<div class="menu">
{#each links as link}
{#if link.sections?.[0].path}
Expand All @@ -116,6 +112,8 @@ Top navigation bar for the application. It provides a slot for the left side, th
>
<ThemeToggle />
</div>

{@render search?.()}
</div>
</div>

Expand Down Expand Up @@ -317,17 +315,10 @@ Top navigation bar for the application. It provides a slot for the left side, th
}
}

.desktop .center-area {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
}

@media (min-width: 800px) {
nav {
display: grid;
grid-template-columns: auto 1fr 1fr;
grid-template-columns: 1fr auto;
}

nav::after {
Expand Down Expand Up @@ -357,11 +348,4 @@ Top navigation bar for the application. It provides a slot for the left side, th
display: none;
}
}

@media (min-width: 1240px) {
nav {
display: grid;
grid-template-columns: 1fr auto 1fr;
}
}
</style>
3 changes: 2 additions & 1 deletion packages/site-kit/src/lib/search/Search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ Renders a search widget which when clicked (or the corresponding keyboard shortc

@media (min-width: 1240px) {
.search-container {
width: 32rem;
width: 19rem;
margin-left: 1rem;
}
}
</style>
Loading