Skip to content

Adding variants for definition lists? #18334

Answered by wongjn
mtemakuni320 asked this question in Help
Discussion options

You must be logged in to vote

The plugin does not seem to define variants for those elements. You could try [&_dl]:, [&_dd]: and [&_dt]: respectively. Or if you are using the not-prose class too, then you could do [&_dl:not(.not-prose_*)]:, [&_dd:not(.not-prose_*)]: and [&_dt:not(.not-prose_*)]: respectively. You could also abstract these using @custom-variant to use the prose-* variant naming scheme too.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mtemakuni320
Comment options

@wongjn
Comment options

wongjn Jun 18, 2025
Collaborator

@mtemakuni320
Comment options

Answer selected by mtemakuni320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants