Skip to content

Commit e1cfd1b

Browse files
committed
color transitions and remove hat
1 parent dd86964 commit e1cfd1b

File tree

4 files changed

+5
-41
lines changed

4 files changed

+5
-41
lines changed

src/lib/Header.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script>
22
import { page } from "$app/stores";
33
import Nais from "./icons/Nais.svelte";
4-
import NaisJul from "./icons/Nais-jul.svelte";
54
65
const isActive = (/** @type {string} */ path) => $page.url.pathname.startsWith(`/${path}`);
76
let isOpen = $state(false);
@@ -10,8 +9,7 @@
109
<header class="header">
1110
<h1 class="heading">
1211
<a class="home" href="/">
13-
<Nais class="nais" />
14-
<NaisJul class="nais-jul" />
12+
<Nais />
1513
<span class="name">Nais</span>
1614
</a>
1715
</h1>
@@ -112,6 +110,7 @@
112110
}
113111
.home {
114112
text-decoration: none;
113+
transition: color 50ms;
115114
color: var(--color-primary);
116115
display: grid;
117116
grid-template-columns: auto 1fr;
@@ -170,6 +169,7 @@
170169
font-size: 1.15rem;
171170
}
172171
.main-menu-item.isActive {
172+
transition: color 50ms;
173173
color: var(--color-primary);
174174
}
175175
.github-link {

src/lib/icons/Nais-jul.svelte

-28
This file was deleted.

src/styles/advent.css

+1-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@
88
--color-spectrum-5: transparent;
99
}
1010
:root:has(.article.advent) body {
11-
background: #d3cdb6;
12-
}
13-
:root:has(.article.advent) .home > .nais {
14-
display: none;
15-
}
16-
:root:has(.article.advent) .home > .nais-jul {
17-
display: initial;
11+
background-color: #d3cdb6;
1812
}
1913
:root:has(.article.advent) hr {
2014
--size: 8px;

src/styles/app.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@
1313
--color-spectrum-5: #6ee5c1;
1414
}
1515
body {
16+
transition: background-color 50ms;
1617
font-family: Poppins, sans-serif;
1718
background-color: #fdf9fc;
1819
color: #222;
1920
overflow-x: clip;
2021
}
21-
.home > .nais-jul {
22-
display: none;
23-
}
2422
a {
2523
color: inherit;
2624
}

0 commit comments

Comments
 (0)