Skip to content

Commit

Permalink
Add wrap to tables. following https://rackerlabs.github.io/docs-racks…
Browse files Browse the repository at this point in the history
  • Loading branch information
Braun Nils (CR/PJ-AI-E) committed Feb 27, 2020
1 parent 74b3f2b commit 802f029
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/_static/theme_override.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* override table width restrictions. Taken from https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html */
@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;
}
}

7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# From https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html
html_context = {
'css_files': [
'_static/theme_override.css', # override wide tables in RTD theme
],
}

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
# html_last_updated_fmt = '%b %d, %Y'
Expand Down

0 comments on commit 802f029

Please sign in to comment.