Skip to content

Commit

Permalink
fix: Sidebar link styles, timeline item styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kiosion committed Oct 14, 2024
1 parent f86d8d1 commit 1977347
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
4 changes: 2 additions & 2 deletions svelte-app/src/components/about/timeline-item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
><ChevronRightSmall /></span
>
<div class="content">
<h3 class="pb-1 pt-1 text-base font-bold text-dark transition-colors dark:text-white">
<h3 class="pt-1 text-base font-bold text-dark transition-colors dark:text-white">
{title}
</h3>
<p
Expand Down Expand Up @@ -64,7 +64,7 @@
}
&:before {
@apply absolute border-l border-dashed border-neutral-200 transition-colors;
@apply absolute border-l border-dashed border-neutral-300 transition-colors;
content: '';
top: #{$bulletTopMargin + $bulletSize + $lineGap};
Expand Down
1 change: 1 addition & 0 deletions svelte-app/src/components/link.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
? `${link.slice(0, 50 - 3)}...`
: link ?? $t('Visit')}
placement={tooltipPlacement}
delay={[500, 0]}
>
<svelte:element
this={type}
Expand Down
36 changes: 18 additions & 18 deletions svelte-app/src/components/sidebar/sidebar-link.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
import { navigating, page } from '$app/stores';
import { isLocalized, linkTo, t } from '$lib/i18n';
import SidebarTooltip from '$components/sidebar/sidebar-tooltip.svelte';
import Tooltip from '$components/tooltips/tooltip.svelte';
// import SidebarTooltip from '$components/sidebar/sidebar-tooltip.svelte';
// import Tooltip from '$components/tooltips/tooltip.svelte';
import type { NAV_LINKS } from '$lib/consts';
export let link: (typeof NAV_LINKS)[number],
Expand Down Expand Up @@ -37,23 +36,24 @@
})();
</script>

<Tooltip placement="bottom-end">
<!-- <Tooltip placement="bottom-end" offset={0} delay={[500, 0]}>
<svelte:fragment slot="content">
<SidebarTooltip {link} />
</svelte:fragment>
<a
href={link.url}
class="focus-outline-sm -mx-2 block w-[calc(100%+16px)] rounded-lg px-3 py-1.5 text-md text-neutral-700 transition-colors dark:text-neutral-200"
class:active={isActive}
class:font-semibold={isActive}
aria-current={isActive ? 'page' : undefined}
data-sveltekit-preload-code
on:click={handleAction}
on:keydown={(e) => e.key === 'Enter' && handleAction(e)}
>
{$t(link.name)}
</a>
</Tooltip>
</svelte:fragment> -->
<a
href={link.url}
class="focus-outline-sm -mx-2 block w-[calc(100%+16px)] rounded-lg px-3 py-1.5 text-md text-neutral-700 transition-colors dark:text-neutral-200"
class:active={isActive}
class:font-semibold={isActive}
aria-current={isActive ? 'page' : undefined}
data-sveltekit-preload-code
on:click={handleAction}
on:keydown={(e) => e.key === 'Enter' && handleAction(e)}
>
{$t(link.name)}
</a>

<!-- </Tooltip> -->

<style lang="scss">
@import '@styles/colors';
Expand Down

0 comments on commit 1977347

Please sign in to comment.