mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2026-10-13 01:42:01 -05: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:
1 parent
8551188ad6
commit
b97a7ee445
2 files changed
+14
-1
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user