diff options
author | wpank <will.pankiewicz@gmail.com> | 2018-06-28 03:01:48 +0800 |
---|---|---|
committer | wpank <will.pankiewicz@gmail.com> | 2018-06-28 03:01:48 +0800 |
commit | 3cc780de33cf3a524d80f8b34b57183fe7b93168 (patch) | |
tree | 7d65963fc094913f71712a8b87bf8aea1088f432 /docs | |
parent | 4a842ecc823c2d4152cdf2639eb83f2318499f1c (diff) | |
download | dexon-solidity-3cc780de33cf3a524d80f8b34b57183fe7b93168.tar dexon-solidity-3cc780de33cf3a524d80f8b34b57183fe7b93168.tar.gz dexon-solidity-3cc780de33cf3a524d80f8b34b57183fe7b93168.tar.bz2 dexon-solidity-3cc780de33cf3a524d80f8b34b57183fe7b93168.tar.lz dexon-solidity-3cc780de33cf3a524d80f8b34b57183fe7b93168.tar.xz dexon-solidity-3cc780de33cf3a524d80f8b34b57183fe7b93168.tar.zst dexon-solidity-3cc780de33cf3a524d80f8b34b57183fe7b93168.zip |
Added static CSS to Sphinx in order to fix bug with RTD theme table wrapping
Diffstat (limited to 'docs')
-rw-r--r-- | docs/_static/theme_overrides.css | 13 | ||||
-rw-r--r-- | docs/conf.py | 11 |
2 files changed, 23 insertions, 1 deletions
diff --git a/docs/_static/theme_overrides.css b/docs/_static/theme_overrides.css new file mode 100644 index 00000000..d750f4f1 --- /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 sphinx_rtd_theme 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 fdb67367..fcf46c11 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -141,7 +141,16 @@ html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = [] +html_static_path = ['_static'] + +# A dictionary of values to pass into the template engine’s context for +# all pages. Single values can also be put in +# this dictionary using the -A command-line option of sphinx-build. +html_context = { + 'css_files': [ + '_static/theme_overrides.css', # override wide tables in sphinx_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 |