diff --git a/docs/_static/theme_overrides.css b/docs/_static/theme_overrides.css new file mode 100644 index 0000000..63ee6cc --- /dev/null +++ b/docs/_static/theme_overrides.css @@ -0,0 +1,13 @@ +/* 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/docs/conf.py b/docs/conf.py index e062aa0..98bf200 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -251,6 +251,12 @@ html_static_path = ['_static'] # Output file base name for HTML help builder. htmlhelp_basename = 'kasdoc' +html_context = { + 'extra_css_files': [ + '_static/theme_overrides.css', # override wide tables in RTD theme + ], +} + # -- Options for LaTeX output --------------------------------------------- latex_elements = {