Skip to content

Commit df8e454

Browse files
authored
use proper wordmark (#156)
* use wordmark * fix mobile * remove unused file
1 parent 20dd9e8 commit df8e454

File tree

2 files changed

+15
-29
lines changed

2 files changed

+15
-29
lines changed
Lines changed: 1 addition & 0 deletions
Loading

packages/site-kit/src/lib/nav/Nav.svelte

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,11 @@ Top navigation bar for the application. It provides a slot for the left side, th
6969
style:z-index={$overlay_open && ($searching || $on_this_page_open) ? 80 : null}
7070
aria-label="Primary"
7171
>
72-
<a class="home-link" href="/" title={home_title}>
73-
<strong>svelte</strong>
74-
</a>
72+
<a class="home-link" href="/" title={home_title} aria-label="Svelte"></a>
7573

7674
{#if title}
7775
<div class="current-section mobile">
78-
{title}
76+
{title}
7977
</div>
8078
{/if}
8179

@@ -167,6 +165,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
167165
font-size: 0.8em;
168166
color: var(--sk-text-3);
169167
margin-left: 0.4em;
168+
padding: 0.1rem 0 0 0;
170169
}
171170
172171
@media (max-width: 800px) {
@@ -184,7 +183,7 @@ Top navigation bar for the application. It provides a slot for the left side, th
184183
.menu :global(a) {
185184
color: var(--sk-text-2);
186185
line-height: 1;
187-
padding: 0 0.3em;
186+
padding: 0.1rem 0.5rem 0 0.5rem;
188187
white-space: nowrap;
189188
height: 100%;
190189
display: flex;
@@ -202,31 +201,12 @@ Top navigation bar for the application. It provides a slot for the left side, th
202201
}
203202
204203
.home-link {
205-
max-width: max-content;
204+
--padding-right: 1rem;
205+
width: 13rem;
206206
height: 100%;
207-
display: flex;
208-
background-image: url(../branding/svelte-logo.svg);
209-
background-position: calc(var(--sk-page-padding-side) - 1rem) 50%;
210-
background-repeat: no-repeat;
211-
background-size: auto 70%;
212-
align-items: center;
213-
padding-left: calc(var(--sk-page-padding-side) + 4rem);
214-
padding-right: 2rem;
215-
text-decoration: none;
216-
text-transform: uppercase;
217-
letter-spacing: 0.05em;
218-
font-size: 1.8rem;
219-
color: var(--sk-text-4);
220-
221-
strong {
222-
position: relative;
223-
color: var(--sk-text-1);
224-
font-weight: inherit;
225-
226-
@media (min-width: 800px) {
227-
top: 1px;
228-
}
229-
}
207+
background: url(../branding/svelte.svg) no-repeat var(--sk-page-padding-side) 50% /
208+
calc(100% - var(--sk-page-padding-side) - var(--padding-right)) auto;
209+
padding: 0 var(--padding-right) 0 calc(var(--sk-page-padding-side) + 0rem);
230210
}
231211
232212
.mobile-menu {
@@ -306,6 +286,11 @@ Top navigation bar for the application. It provides a slot for the left side, th
306286
}
307287
308288
@media (min-width: 800px) {
289+
.home-link {
290+
--padding-right: 2rem;
291+
width: 18rem;
292+
}
293+
309294
nav {
310295
display: grid;
311296
grid-template-columns: auto 1fr 1fr;

0 commit comments

Comments
 (0)