File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 9
9
export let toc: Array <TocItem > = [];
10
10
</script >
11
11
12
- <nav class =" sticky top-32 col-span-3 - ml-4 hidden h-[800px] lg:block " >
13
- <span class =" text-micro tracking-loose text-primary pl-8 uppercase" >Table of Contents</span >
12
+ <nav class =" sticky top-32 col-span-3 mt-2 - ml-4 hidden h-[800px] flex-col gap-6 lg:flex " >
13
+ <span class =" text-micro text-primary ps-6 uppercase tracking-tighter " >Table of Contents</span >
14
14
<div class =" relative" >
15
15
<ul
16
- class =" border-smooth mask mt-11 flex max-h-[600px] flex-col gap-7 overflow-scroll border-b pb-11 [scrollbar-width:none]"
16
+ class =" border-smooth mask text-caption flex max-h-[600px] flex-col gap-4 overflow-scroll border-b pb-11 [scrollbar-width:none]"
17
17
>
18
18
{#each toc as parent (parent .href )}
19
19
<li
20
20
class ={classNames (
21
21
parent .selected ? ' text-primary' : ' text-secondary' ,
22
- ' relative pl-7 transition-colors' ,
23
- ' before:bg-primary before:absolute before:top-0 before:left-0 before:h-6 before:w-px before:rounded-full before:opacity-0 before:transition-opacity' ,
22
+ ' relative ps-6 transition-colors' ,
23
+ ' before:bg-greyscale-300 before:absolute before:top-0 before:left-0 before:h-6 before:w-px before:rounded-full before:opacity-0 before:transition-opacity' ,
24
24
{
25
25
' font-medium' : parent .level && parent .level === 1 ,
26
- ' pl-11 ' : parent .level && parent .level === 2 ,
26
+ ' ps-6 ' : parent .level && parent .level === 2 ,
27
27
' pl-16' : parent .level && parent .level >= 3 ,
28
28
' before:opacity-100' : parent .selected
29
29
}
You can’t perform that action at this time.
0 commit comments