File tree 4 files changed +5
-41
lines changed
4 files changed +5
-41
lines changed Original file line number Diff line number Diff line change 1
1
<script >
2
2
import { page } from " $app/stores" ;
3
3
import Nais from " ./icons/Nais.svelte" ;
4
- import NaisJul from " ./icons/Nais-jul.svelte" ;
5
4
6
5
const isActive = (/** @type {string} */ path ) => $page .url .pathname .startsWith (` /${ path} ` );
7
6
let isOpen = $state (false );
10
9
<header class =" header" >
11
10
<h1 class =" heading" >
12
11
<a class =" home" href =" /" >
13
- <Nais class =" nais" />
14
- <NaisJul class =" nais-jul" />
12
+ <Nais />
15
13
<span class =" name" >Nais</span >
16
14
</a >
17
15
</h1 >
112
110
}
113
111
.home {
114
112
text-decoration : none ;
113
+ transition : color 50ms ;
115
114
color : var (--color-primary );
116
115
display : grid ;
117
116
grid-template-columns : auto 1fr ;
170
169
font-size : 1.15rem ;
171
170
}
172
171
.main-menu-item.isActive {
172
+ transition : color 50ms ;
173
173
color : var (--color-primary );
174
174
}
175
175
.github-link {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
--color-spectrum-5 : transparent;
9
9
}
10
10
: 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 ;
18
12
}
19
13
: root : has (.article .advent ) hr {
20
14
--size : 8px ;
Original file line number Diff line number Diff line change 13
13
--color-spectrum-5 : # 6ee5c1 ;
14
14
}
15
15
body {
16
+ transition : background-color 50ms ;
16
17
font-family : Poppins, sans-serif;
17
18
background-color : # fdf9fc ;
18
19
color : # 222 ;
19
20
overflow-x : clip;
20
21
}
21
- .home > .nais-jul {
22
- display : none;
23
- }
24
22
a {
25
23
color : inherit;
26
24
}
You can’t perform that action at this time.
0 commit comments