Add table of contents base style

This commit is contained in:
Sat Naing
2022-09-17 13:56:14 +06:30
parent 503a96c938
commit 14f23f2516
+12 -1
View File
@@ -44,11 +44,22 @@
@apply w-6 h-6 inline-block fill-skin-base group-hover:fill-skin-accent;
}
.prose {
@apply prose-a:underline-offset-8 prose-li:overflow-x-clip prose-a:!decoration-dashed hover:prose-a:text-skin-accent prose-img:mx-auto;
@apply prose-a:underline-offset-8 prose-li:overflow-x-clip
prose-a:!decoration-dashed hover:prose-a:text-skin-accent
prose-img:mx-auto;
}
.theme-dark .prose {
@apply prose-invert;
}
#article h2#table-of-contents {
@apply mb-2;
}
#article h2#table-of-contents + p {
@apply hidden;
}
#article details {
@apply cursor-pointer inline-block select-none;
}
}
@layer components {