From 1522baf58aa4368bbc268fa112ed35089fbc85c2 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Wed, 27 Feb 2019 23:55:22 +0900 Subject: [PATCH] Fix #6113: html: Table cells and list items have large margins --- CHANGES | 1 + sphinx/themes/basic/static/basic.css_t | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 699437b66..85b225e31 100644 --- a/CHANGES +++ b/CHANGES @@ -18,6 +18,7 @@ Bugs fixed * #6096: html: Anchor links are not added to figures * #3620: html: Defer searchindex.js rather than loading it via ajax +* #6113: html: Table cells and list items have large margins * #5508: ``linenothreshold`` option for ``highlight`` directive was ignored Testing diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t index ec30e8432..90a14286f 100644 --- a/sphinx/themes/basic/static/basic.css_t +++ b/sphinx/themes/basic/static/basic.css_t @@ -401,11 +401,13 @@ table.citation td { border-bottom: none; } +th > p:first-child, td > p:first-child { margin-top: 0px; } -td > p:only-child { +th > p:last-child, +td > p:last-child { margin-bottom: 0px; } @@ -482,7 +484,7 @@ li > p:first-child { margin-top: 0px; } -li > p:only-child { +li > p:last-child { margin-bottom: 0px; }