make repl and doc styles more similar

This commit is contained in:
Felix Roos
2022-12-22 22:49:41 +01:00
parent 9aaaa755c7
commit f18a2a11fa
9 changed files with 42 additions and 18 deletions
@@ -75,9 +75,9 @@ const TableOfContents: FunctionalComponent<{ headings: MarkdownHeading[] }> = ({
<a
href={`#${heading.slug}`}
onClick={onLinkClick}
className={`py-0.5 block cursor-pointer w-full border-l-4 border-gray-900 hover:bg-gray-900 ${
className={`py-0.5 block cursor-pointer w-full border-l-4 border-header hover:bg-header ${
['pl-4', 'pl-9', 'pl-12'][heading.depth - minDepth]
} ${currentID === heading.slug ? 'bg-gray-900' : ''}`.trim()}
} ${currentID === heading.slug ? 'bg-header' : ''}`.trim()}
>
{unescape(heading.text)}
</a>