Merge pull request #6114 from tk0miya/6113_adjust_css

Fix #6113: html: Table cells and list items have large margins
This commit is contained in:
Takeshi KOMIYA 2019-02-28 01:02:49 +09:00 committed by GitHub
commit 0068440e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -18,6 +18,7 @@ Bugs fixed
* #6096: html: Anchor links are not added to figures * #6096: html: Anchor links are not added to figures
* #3620: html: Defer searchindex.js rather than loading it via ajax * #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 * #5508: ``linenothreshold`` option for ``highlight`` directive was ignored
Testing Testing

View File

@ -401,11 +401,13 @@ table.citation td {
border-bottom: none; border-bottom: none;
} }
th > p:first-child,
td > p:first-child { td > p:first-child {
margin-top: 0px; margin-top: 0px;
} }
td > p:only-child { th > p:last-child,
td > p:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
@ -482,7 +484,7 @@ li > p:first-child {
margin-top: 0px; margin-top: 0px;
} }
li > p:only-child { li > p:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }