Fixed styling of tables in docs

This commit is contained in:
Gina Häußge 2015-02-23 22:15:04 +01:00
parent bb0a607891
commit 2fac5c76d9
2 changed files with 15 additions and 0 deletions

10
docs/_static/theme_overrides.css vendored Normal file
View file

@ -0,0 +1,10 @@
/* override table width restrictions */
.wy-table-responsive table td, .wy-table-responsive table th {
/* !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;
}

View file

@ -139,6 +139,11 @@ if not on_rtd: # only import and set the theme if we're building docs locally
# 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 = ['_static']
html_context = {
'css_files': [
'_static/theme_overrides.css', # overrides for wide tables in RTD theme
],
}
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.