Skip to content

Commit da004ff

Browse files
committed
CSS update to allow text wrapping in tables
1 parent 610a7b5 commit da004ff

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.viewcode-block {background-color: yellow;}
2+
3+
/* override table width restrictions */
4+
@media screen and (min-width: 767px) {
5+
6+
.wy-table-responsive table td {
7+
/* !important prevents the common CSS stylesheets from overriding
8+
this as on RTD they are loaded after this stylesheet */
9+
white-space: normal !important;
10+
}
11+
12+
.wy-table-responsive {
13+
overflow: visible !important;
14+
}
15+
}

β€Ždocs/source/conf.pyβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
# relative to this directory. They are copied after the builtin static files,
9797
# so a file named "default.css" will overwrite the builtin "default.css".
9898
html_static_path = ['_static']
99-
# html_css_files = [
100-
# 'css/custom.css',
101-
# ]
99+
html_css_files = [
100+
'css/custom.css',
101+
]
102102
# autodoc_mock_imports = ["numpy", "scipy"]
103103

104104

0 commit comments

Comments
 (0)