From a10dfda9435aa73ac804a37d26cac7d3c83b3df7 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 4 Nov 2023 01:56:32 -0600 Subject: [PATCH] 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 --- preview-src/index.adoc | 1 + src/css/doc.css | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index afdbda0..e8e054f 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -192,6 +192,7 @@ sed:: splendide sed mea:: +tad:: agam graeci Let's look at that another way. diff --git a/src/css/doc.css b/src/css/doc.css index 82c647e..0dd86a3 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -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,