From af19e21ffce65f7e25911d705c6e24554dfb8931 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 4 Feb 2018 15:21:41 +0900 Subject: [PATCH] Fix #3942: html: table is not aligned to center even if ``:align: center`` --- CHANGES | 1 + sphinx/themes/basic/static/basic.css_t | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index 4ebc9c2da..14d333cfa 100644 --- a/CHANGES +++ b/CHANGES @@ -30,6 +30,7 @@ Bugs fixed * #3953: Do not raise warning when there is a working intersphinx inventory * #4487: math: ValueError is raised on parallel build. Thanks to jschueller. * #2372: autosummary: invalid signatures are shown for type annotated functions +* #3942: html: table is not aligned to center even if ``:align: center`` Testing -------- diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t index 745864e28..407ef9528 100644 --- a/sphinx/themes/basic/static/basic.css_t +++ b/sphinx/themes/basic/static/basic.css_t @@ -332,6 +332,11 @@ table.docutils { border-collapse: collapse; } +table.align-center { + margin-left: auto; + margin-right: auto; +} + table caption span.caption-number { font-style: italic; }