Commit Graph

6 Commits

Author SHA1 Message Date
Ana Costa
b2f52f4328
Fixes #289: Inconsistent table typography sizing (#1215)
* Fix table typography inconsistent sizing

* Remove rule duplication

* Remove <ol> and fix build

* Build new theme.css for https://github.com/readthedocs/sphinx_rtd_theme/pull/1215

* Add an example rendering with paragraphs inside tables

* build theme.css for https://github.com/readthedocs/sphinx_rtd_theme/pull/1215

Co-authored-by: Benjamin Bach <benjamin@overtag.dk>
2022-08-27 00:55:59 +02:00
Anthony Johnson
ac20ce75d4
Use only-child to limit margins on single paragraph list items
This is a compromise between the docutils intended style and more
consistent margins than 0.4.3.
2020-06-16 16:30:26 -06:00
Anthony Johnson
aa0a108543
Add complex list margins, use margin-less items for ul.simple margins
0.5.0 was moving in the direction of treating everything like a simple
list. 0.4.3 had some bugs that made complex lists look closer to the
spacing that complex lists use. This resolves both and adds specific
item margins for both cases.

See https://docutils.sourceforge.io/sandbox/html4strict/data/simple-lists.html
2020-06-16 13:54:47 -06:00
Anthony Johnson
6f0de13baf
Fix a number of issues around margins on last children
The HTML4 writer depended on the `.last` selector, a class added by
Sphinx directly on output. Both writers are not using that method
anymore and instead relying on well supported CSS selectors.

This actually also addresses a number of inconsistencies with margin
spacing in lists. Version 0.4.3 and prior have a number of odd issues
around nested lists that are resolved with this change.
2020-06-05 09:50:22 -06:00
Anthony Johnson
33625141ec
Address issue with dl.simple definition lists
This was not a test case in our demo docs, and I'm still not entirely
sure why the style needs to be different. 🤷

Fixes #913
2020-05-06 19:24:30 -06:00
Eric Holscher
56bffcb8fb Rejigger 2017-12-20 20:09:36 -08:00