Commit 74368bd
Changed files (1)
src
styles
article
src/styles/article/term.css
@@ -4,16 +4,34 @@ dl {
}
dd {
@apply mt-2 mb-2;
- text-indent: 2em hanging;
- & *:first-child {
+ & > *:first-child {
@apply mt-0;
}
- & *:not(:first-child) {
+ & > *:last-child {
+ @apply mb-0;
+ }
+ }
+ dd:not(:has(math[display="block"]:only-child)) {
+ text-indent: 2em hanging;
+ &
+ > :not(:first-child):is(
+ p,
+ div,
+ blockquote,
+ ul,
+ ol,
+ figure,
+ pre,
+ table,
+ math[display="block"]
+ ) {
@apply pl-[2em];
text-indent: 0;
}
- & *:last-child {
- @apply mb-0;
- }
+ }
+ dd:has(math[display="block"])::before {
+ content: "";
+ display: block;
+ height: 1lh;
}
}