From e16cca02bb286ee60dbf0534a16fa5e1fc664e7f Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 27 Nov 2021 11:28:27 +0100 Subject: [PATCH] fix readthedocs table width --- docs/css/extra.css | 18 ++++++++++++++++++ mkdocs.yml | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 docs/css/extra.css diff --git a/docs/css/extra.css b/docs/css/extra.css new file mode 100644 index 0000000..023bc68 --- /dev/null +++ b/docs/css/extra.css @@ -0,0 +1,18 @@ +/* + * from https://github.com/readthedocs/sphinx_rtd_theme/issues/117#issuecomment-153083280 + */ + +/* override table width restrictions */ +@media screen and (min-width: 767px) { + + .wy-table-responsive table td { + /* !important prevents the common CSS stylesheets from + overriding this as on RTD they are loaded after this stylesheet */ + white-space: normal !important; + } + + .wy-table-responsive { + overflow: visible !important; + } + +} diff --git a/mkdocs.yml b/mkdocs.yml index 0850f71..b05fb4e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -24,4 +24,6 @@ markdown_extensions: - fenced_code - toc: permalink: True +extra_css: + - css/extra.css