Skip to content

Commit b97a7ee

Browse files
jessetanBlendify
authored andcommitted
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
1 parent 8551188 commit b97a7ee

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

docs/changelog.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ Changelog
66
master
77
======
88

9+
New Features
10+
-------------
11+
12+
Fixes
13+
-----
14+
15+
* Fix table centering (#599)
16+
17+
Other Changes
18+
--------------
19+
920
v0.3.0
1021
======
1122

sass/_theme_rst.sass

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@
148148
margin: 0px $base-line-height $base-line-height 0px
149149
.align-center
150150
margin: auto
151-
display: block
151+
// Do not override display:table for tables
152+
&:not(table)
153+
display: block
152154
.toctree-wrapper p.caption
153155
@extend h2
154156

0 commit comments

Comments
 (0)