From b97a7ee4454d4e7aa24fa0fa7c51210f72b0b3fe Mon Sep 17 00:00:00 2001 From: Jesse Tan Date: Thu, 12 Apr 2018 01:08:30 +0200 Subject: [PATCH] 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 --- docs/changelog.rst | 11 +++++++++++ sass/_theme_rst.sass | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 06177d0a..d3081f40 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,17 @@ Changelog master ====== +New Features +------------- + +Fixes +----- + +* Fix table centering (#599) + +Other Changes +-------------- + v0.3.0 ====== diff --git a/sass/_theme_rst.sass b/sass/_theme_rst.sass index edb6924a..cce2e9fe 100644 --- a/sass/_theme_rst.sass +++ b/sass/_theme_rst.sass @@ -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