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>
This commit is contained in:
Ana Costa
2022-08-26 23:55:59 +01:00
committed by GitHub
parent 90463f0abe
commit b2f52f4328
3 changed files with 30 additions and 2 deletions

View File

@@ -346,3 +346,26 @@ List Tables
This is a long caption for a figure. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec porttitor dolor in odio posuere, vitae ornare libero mattis. In lobortis justo vestibulum nibh aliquet, non.
Tables with paragraphs
----------------------
.. regression test for https://github.com/readthedocs/sphinx_rtd_theme/issues/289
Test to see that tables behave well with nested paragraphs.
+------------+----------+-------------------------+
| Precedence | Operator | Description |
+============+==========+=========================+
| 1 | \:: | Scope resolution |
+------------+----------+-------------------------+
| 2 | ( ) | Function call |
| | | |
| | [ ] | Subscript |
| | | |
| | . | Member access |
| | | |
| | .{ } | Bit-field concatenation |
+------------+----------+-------------------------+

File diff suppressed because one or more lines are too long

View File

@@ -225,6 +225,12 @@
&:hover .headerlink
opacity: 1
// Consistent font sizing for table typography
.wy-table
th, td
p, ul
font-size: inherit
// override the Wyrm accessibility anti-pattern of hiding button focus
.btn:focus
outline: 2px solid
@@ -378,7 +384,6 @@
td
border: none
p
font-size: inherit
line-height: inherit
td > strong
display: inline-block