Skip to content

Commit

Permalink
fix margin around descriptions in description list
Browse files Browse the repository at this point in the history
* apply margin to top of subsequent terms (using dd + dt selector) instead of end of description
* add margin top to principal text
  • Loading branch information
mojavelinux committed Nov 4, 2023
1 parent 4ef7908 commit a10dfda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions preview-src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ sed::
splendide sed

mea::
tad::
agam graeci

Let's look at that another way.
Expand Down
7 changes: 4 additions & 3 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -948,11 +948,12 @@
}

.doc .dlist dd {
margin: 0 0 0.25rem 1.5rem;
margin: 0 0 0 1.5rem;
}

.doc .dlist dd:last-of-type {
margin-bottom: 0;
.doc .dlist dd + dt,
.doc .dlist dd > p:first-child {
margin-top: 0.5rem;
}

.doc td.hdlist1,
Expand Down

0 comments on commit a10dfda

Please sign in to comment.