Skip to content

Commit

Permalink
docs: indent with margin (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb committed Mar 7, 2024
1 parent a0ea391 commit e19a097
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workspace/website/src/routes/docs/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
<Divider type="horizontal" spacing="0.5rem" />

{#each data.table as { id, title, level }}
<a href="#{id}" style:padding-left="{level * 0.5}rem">{title}</a>
{@const indent = `${(level - 2) * 0.5}rem`}
<a href="#{id}" style:margin-left={indent}>{title}</a>
{/each}
</aside>

Expand Down

0 comments on commit e19a097

Please sign in to comment.