Skip to content

Commit

Permalink
Add grid-column to dt/dd elements.
Browse files Browse the repository at this point in the history
This ensures that dt elements are always in the first column even if its dd pair does not exist (and vice versa).
  • Loading branch information
Matthew Brandt committed Jan 14, 2025
1 parent 8ca3f76 commit b1f486d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lattice/docs/extra_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ dl {

:is([dir="ltr"], [dir="rtl"]) .md-typeset dt {
text-align: right;
grid-column: 1 / 2;
}

:is([dir="ltr"], [dir="rtl"]) .md-typeset dd {
margin: 0;
grid-column: 2 / -1;
}

dl > dd > * {
Expand Down

0 comments on commit b1f486d

Please sign in to comment.