♻️ Adopt new Tailwind typography theming

This commit is contained in:
James Panther
2022-01-17 14:14:52 +11:00
parent 30fad56aed
commit ad495ca9ef
14 changed files with 278 additions and 420 deletions
+17 -17
View File
@@ -22,15 +22,15 @@ body button {
}
/* Heading anchors */
.prose .heading-anchor:hover {
.markdown .heading-anchor:hover {
@apply underline bg-transparent text-primary-500 !important;
}
.prose .heading-anchor:hover,
.prose .heading-anchor:focus,
.prose h2:hover > .heading-anchor,
.prose h3:hover > .heading-anchor,
.prose h4:hover > .heading-anchor {
@apply no-underline opacity-100 text-primary-200;
.markdown .heading-anchor:hover,
.markdown .heading-anchor:focus,
.markdown h2:hover > .heading-anchor,
.markdown h3:hover > .heading-anchor,
.markdown h4:hover > .heading-anchor {
@apply no-underline opacity-100 text-primary-200 dark:text-neutral-700;
}
/* Article pagination */
@@ -42,29 +42,29 @@ body button {
}
/* RTL support */
.prose blockquote {
.markdown blockquote {
@apply rtl:pr-4 rtl:border-l-0 rtl:border-r-4;
}
.prose ul > li,
.prose ol > li {
.markdown ul > li,
.markdown ol > li {
@apply rtl:pl-0 rtl:pr-2 rtl:mr-7;
}
.prose ol > li:before,
.prose ul > li:before {
.markdown ol > li:before,
.markdown ul > li:before {
@apply rtl:left-auto rtl:right-1;
}
.prose thead td:first-child,
.prose thead th:first-child {
.markdown thead td:first-child,
.markdown thead th:first-child {
@apply rtl:pr-0;
}
.prose thead td:last-child,
.prose thead th:last-child {
.markdown thead td:last-child,
.markdown thead th:last-child {
@apply rtl:pl-0;
}
/* -- Chroma Highlight -- */
/* Background */
.prose .chroma {
.markdown .chroma {
@apply rounded-md text-neutral-700 bg-neutral-50 dark:bg-neutral-700 dark:text-neutral-200;
}
/* LineTableTD */