mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Fix centered tables (#601)
* Fix centered tables Centered elements get `display: block` which does not work with tables. This commit excepts tables, so they will still use `display: table` and center properly Fixes #599. * Update changelog
This commit is contained in:
parent
8551188ad6
commit
b97a7ee445
@ -6,6 +6,17 @@ Changelog
|
||||
master
|
||||
======
|
||||
|
||||
New Features
|
||||
-------------
|
||||
|
||||
Fixes
|
||||
-----
|
||||
|
||||
* Fix table centering (#599)
|
||||
|
||||
Other Changes
|
||||
--------------
|
||||
|
||||
v0.3.0
|
||||
======
|
||||
|
||||
|
@ -148,7 +148,9 @@
|
||||
margin: 0px $base-line-height $base-line-height 0px
|
||||
.align-center
|
||||
margin: auto
|
||||
display: block
|
||||
// Do not override display:table for tables
|
||||
&:not(table)
|
||||
display: block
|
||||
.toctree-wrapper p.caption
|
||||
@extend h2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user