fix table display issue
Project: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/commit/a02a32bc Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/tree/a02a32bc Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/diff/a02a32bc Branch: refs/heads/master Commit: a02a32bce8102efaa8d456dc136454e52fb2390a Parents: 9b82446 Author: Pierre-Luc Dion <pdion...@apache.org> Authored: Sat Mar 7 14:35:56 2015 -0500 Committer: Pierre-Luc Dion <pdion...@apache.org> Committed: Sat Mar 7 14:35:56 2015 -0500 ---------------------------------------------------------------------- source/_static/theme_overrides.css | 18 ++++++++++++++++++ source/conf.py | 6 ++++++ 2 files changed, 24 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/blob/a02a32bc/source/_static/theme_overrides.css ---------------------------------------------------------------------- diff --git a/source/_static/theme_overrides.css b/source/_static/theme_overrides.css new file mode 100644 index 0000000..f5c5a5e --- /dev/null +++ b/source/_static/theme_overrides.css @@ -0,0 +1,18 @@ +/* override nav-search background */ + +/* override table width restrictions */ +.wy-table-responsive table td, .wy-table-responsive table th { + white-space: normal; +} + +.wy-table-responsive { + margin-bottom: 24px; + max-width: 100%; + overflow: visible; +} + +/* +div[class^="highlight"] pre { + font-size:10px +} +*/ \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cloudstack-docs-install/blob/a02a32bc/source/conf.py ---------------------------------------------------------------------- diff --git a/source/conf.py b/source/conf.py index d9872e2..b089c97 100644 --- a/source/conf.py +++ b/source/conf.py @@ -144,6 +144,12 @@ if not on_rtd: # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] +html_context = { + 'css_files': [ + '_static/theme_overrides.css', # overrides for wide tables in RTD theme + ], + } + # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied # directly to the root of the documentation.