fix: Styling current link
This commit is contained in:
parent
60fc46af4a
commit
0cea3461dc
|
@ -119,7 +119,7 @@ a, button {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-family: serif;
|
font-family: serif;
|
||||||
}
|
}
|
||||||
.nav-link:not(.disabled-link) {
|
.nav-link:not(.disabled-link):not(.current-link) {
|
||||||
color: var(--navlink);
|
color: var(--navlink);
|
||||||
}
|
}
|
||||||
a.disabled-link {
|
a.disabled-link {
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
{#each routes as item}
|
{#each routes as item}
|
||||||
<a
|
<a
|
||||||
class="nav-link"
|
class="nav-link"
|
||||||
class:current-link={isCurrentLink($page.url.pathname, item.route)}
|
|
||||||
class:disabled-link={item.disabled}
|
class:disabled-link={item.disabled}
|
||||||
|
class:current-link={isCurrentLink($page.url.pathname, item.route)}
|
||||||
href={item.route}>{item.name}</a>
|
href={item.route}>{item.name}</a>
|
||||||
{/each}
|
{/each}
|
||||||
<a class="nav-link icon" href="/rss.xml"><Rss /></a>
|
<a class="nav-link icon" href="/rss.xml"><Rss /></a>
|
||||||
|
|
Loading…
Reference in New Issue