From 6e3ae3fc6f640119d7bbbd9ddee4fd2713e4477c Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 12 May 2020 13:05:00 +0200 Subject: [PATCH] basic CSS: remove first/last-child margin not only for

--- sphinx/themes/basic/static/basic.css_t | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t index 45908ece1..01cee109a 100644 --- a/sphinx/themes/basic/static/basic.css_t +++ b/sphinx/themes/basic/static/basic.css_t @@ -426,13 +426,13 @@ table.citation td { border-bottom: none; } -th > p:first-child, -td > p:first-child { +th > :first-child, +td > :first-child { margin-top: 0px; } -th > p:last-child, -td > p:last-child { +th > :last-child, +td > :last-child { margin-bottom: 0px; } @@ -505,11 +505,11 @@ ol.upperroman { list-style: upper-roman; } -li > p:first-child { +li > :first-child { margin-top: 0px; } -li > p:last-child { +li > :last-child { margin-bottom: 0px; } @@ -557,7 +557,7 @@ dl { margin-bottom: 15px; } -dd > p:first-child { +dd > :first-child { margin-top: 0px; }