mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
[Doc] Fix for table wrapping in RTD theme
This causes wide tables to wrap content within their cells rather than producing a table with a scroll bar see https://github.com/readthedocs/sphinx_rtd_theme/issues/117 for details.
This commit is contained in:
parent
2acb497d22
commit
29d66a7fa4
2 changed files with 20 additions and 1 deletions
13
doc/_static/theme_overrides.css
vendored
Normal file
13
doc/_static/theme_overrides.css
vendored
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -103,7 +103,13 @@ html_logo = 'images/logo.svg'
|
|||
# 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 = ['_static']
|
||||
html_static_path = ['_static']
|
||||
|
||||
html_context = {
|
||||
'css_files' : [
|
||||
'_static/theme_overrides.css', # Fix wide tables in RTD theme
|
||||
],
|
||||
}
|
||||
|
||||
# -- Options for HTMLHelp output ------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue