Skip to content

Commit aed7f4c

Browse files
committed
line height-dependent top/bubble calculation
1 parent 2e046ab commit aed7f4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/site-kit/src/lib/components/Text.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,11 @@
380380
li::before {
381381
content: '';
382382
position: absolute;
383-
top: 1.1rem;
383+
top: calc((var(--sk-font-size-body) / var(--sk-line-height-body)) - 0.05lh);
384384
left: -1.8rem;
385385
background-color: var(--sk-text-4);
386-
width: 0.6rem;
387-
height: 0.6rem;
386+
width: 0.2lh;
387+
height: 0.2lh;
388388
border-radius: 50%;
389389
opacity: 0.7;
390390
}

0 commit comments

Comments
 (0)