fix headerlink

This commit is contained in:
ChronosXYZ 2024-09-18 23:24:17 +03:00
parent 95b97f05b8
commit 9a3add3f50
Signed by: ChronosXYZ
GPG Key ID: 189BF50EBD342791
2 changed files with 3 additions and 7 deletions

View File

@ -6,16 +6,13 @@ const { href, ...props } = Astro.props;
// const isActive = href === pathname || href === '/' + subpath?.[0];
---
<div>
<div style={{display: 'flex'}}>
<a href={href} class="header-link">
<slot />
</a>
<span class="menu-separator">|</span>
<span class="menu-separator" style={{visibility: props.showSeparator ? 'visible' : 'hidden'}}>|</span>
</div>
<style define:vars={{showSeparator: props.showSeparator}}>
.menu-separator {
visibility: var(--showSeparator, hidden);
}
<style>
.header-link {
padding: 0 1em;
}

View File

@ -33,7 +33,6 @@ nav {
a {
color: var(--accent-color);
/* text-decoration: none; */
text-underline-offset: 3px;
text-decoration-style: dotted;
text-decoration-color: var(--very-light-grey);