Skip to content

Commit a10dfda

Browse files
committed
fix margin around descriptions in description list
* apply margin to top of subsequent terms (using dd + dt selector) instead of end of description * add margin top to principal text
1 parent 4ef7908 commit a10dfda

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

preview-src/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ sed::
192192
splendide sed
193193

194194
mea::
195+
tad::
195196
agam graeci
196197

197198
Let's look at that another way.

src/css/doc.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -948,11 +948,12 @@
948948
}
949949

950950
.doc .dlist dd {
951-
margin: 0 0 0.25rem 1.5rem;
951+
margin: 0 0 0 1.5rem;
952952
}
953953

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

958959
.doc td.hdlist1,

0 commit comments

Comments
 (0)