Add Tables of Contents to articles

This commit is contained in:
James Panther
2022-01-18 16:24:33 +11:00
parent ace158ed42
commit acc4aee752
15 changed files with 175 additions and 9 deletions
+15
View File
@@ -62,6 +62,21 @@ body button {
@apply rtl:pl-0;
}
/* Table of Contents */
.toc ul,
.toc li {
@apply px-0 my-1 leading-snug list-none;
}
.toc ul ul {
@apply ltr:pl-4 rtl:pr-4;
}
.toc a {
@apply font-normal text-neutral-700 dark:text-neutral-400;
}
.toc ul > li {
@apply rtl:mr-0;
}
/* -- Chroma Highlight -- */
/* Background */
.markdown .chroma {