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 99 export let toc: Array <TocItem > = [];
1010 </script >
1111
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 >
1414 <div class =" relative" >
1515 <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]"
1717 >
1818 {#each toc as parent (parent .href )}
1919 <li
2020 class ={classNames (
2121 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' ,
2424 {
2525 ' font-medium' : parent .level && parent .level === 1 ,
26- ' pl-11 ' : parent .level && parent .level === 2 ,
26+ ' ps-6 ' : parent .level && parent .level === 2 ,
2727 ' pl-16' : parent .level && parent .level >= 3 ,
2828 ' before:opacity-100' : parent .selected
2929 }
You can’t perform that action at this time.
0 commit comments