feat: add styles for definition list (#344)

* feat: dd styles for definition list

* chore: re-generate css
This commit is contained in:
Xin 2024-04-01 01:18:43 +02:00 committed by GitHub
parent 1936b46af4
commit 0d6cbba9df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View File

@ -1730,6 +1730,16 @@ video {
--tw-text-opacity: 1;
color: rgb(156 163 175 / var(--tw-text-opacity));
}
/* Definition list */
.content :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)) dt {
margin-top: 1.5rem;
font-weight: 600;
}
.content :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)) dd {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
padding-inline-start: 1.5rem;
}
.content .footnotes {
margin-top: 3rem;
font-size: .875rem;

View File

@ -77,6 +77,15 @@
@apply hx-text-sm hx-text-gray-500 dark:hx-text-gray-400 hx-mt-2 hx-block hx-text-center;
}
}
/* Definition list */
:where(dl):not(:where([class~=not-prose],[class~=not-prose] *)) {
dt {
@apply hx-mt-6 hx-font-semibold;
}
dd {
@apply hx-my-2 hx-ps-6;
}
}
.footnotes {
@apply hx-mt-12 hx-text-sm;
}