Skip to content

Commit 8e5fefd

Browse files
committed
turn off scroll bars
1 parent 4939d78 commit 8e5fefd

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* override table width restrictions */
2+
/* as described in https://github.com/snide/sphinx_rtd_theme/issues/117 */
3+
.wy-table-responsive table td, .wy-table-responsive table th {
4+
/* !important prevents the common CSS stylesheets from
5+
overriding this as on RTD they are loaded after this stylesheet */
6+
white-space: normal !important;
7+
}
8+
9+
.wy-table-responsive {
10+
overflow: visible !important;
11+
}

docs/sphinx/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ def __getattr__(cls, name):
217217
# Output file base name for HTML help builder.
218218
htmlhelp_basename = 'PVLIB_Pythondoc'
219219

220+
# A workaround for the responsive tables always having annoying scrollbars.
221+
def setup(app):
222+
app.add_stylesheet("no_scrollbars.css")
223+
220224

221225
# -- Options for LaTeX output ---------------------------------------------
222226

0 commit comments

Comments
 (0)