refactor: remove a div in navbutton
This commit is contained in:
parent
bed776c54a
commit
2fcffed6f1
@ -5,26 +5,23 @@
|
|||||||
export let iconUri: string;
|
export let iconUri: string;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<a
|
||||||
class="
|
class="
|
||||||
max-w-36 p-0.5 pr-1.5 border-ralsei-white border-4
|
max-w-36 p-0.5 pr-1.5 border-ralsei-white border-4
|
||||||
{highlight
|
{highlight
|
||||||
? 'min-w-36 bg-gradient-to-l to-ralsei-pink-neon/30 from-ralsei-pink-regular/20 from-30% border-ridge motion-safe:animate-pulse hover:animate-none'
|
? 'min-w-36 bg-gradient-to-l to-ralsei-pink-neon/30 from-ralsei-pink-regular/20 from-30% border-ridge motion-safe:animate-pulse hover:animate-none'
|
||||||
: 'w-fit border-double hover:border-solid motion-safe:hover:animate-bounce hover:underline'}
|
: 'w-fit border-double hover:border-solid motion-safe:hover:animate-bounce hover:underline'}
|
||||||
"
|
flex gap-1 items-center justify-center align-middle text-center
|
||||||
|
{highlight ? 'text-ralsei-pink-regular app-selected-route' : 'text-ralsei-green-light'}
|
||||||
|
"
|
||||||
|
title={name}
|
||||||
|
href="/{href}"
|
||||||
|
data-sveltekit-preload-data="hover"
|
||||||
>
|
>
|
||||||
<a
|
<img class="max-w-4" style="image-rendering: pixelated;" src={iconUri} alt={name} />
|
||||||
class="
|
<div
|
||||||
flex gap-1 items-center justify-center align-middle text-center h-full
|
class="font-monospace text-sm/3 overflow-hidden text-ellipsis text-nowrap [text-decoration-line:inherit]"
|
||||||
{highlight
|
|
||||||
? 'text-ralsei-pink-regular app-selected-route'
|
|
||||||
: 'text-ralsei-green-light'}
|
|
||||||
"
|
|
||||||
title={name}
|
|
||||||
href="/{href}"
|
|
||||||
data-sveltekit-preload-data="hover"
|
|
||||||
>
|
>
|
||||||
<img class="max-w-4" style="image-rendering: pixelated;" src={iconUri} alt={name} />
|
{name}
|
||||||
<div class="font-monospace text-sm/3 overflow-hidden text-ellipsis text-nowrap [text-decoration-line:inherit]">{name}</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user