Skip to content

Commit

Permalink
Merge pull request #1 from stevenjackson121/stevenjackson121-patch-1
Browse files Browse the repository at this point in the history
 fix `sphinx_rtd_theme` lines in tables wrapping
  • Loading branch information
stevenjackson121 committed Oct 5, 2019
2 parents 1a09cf9 + 739c627 commit 088becd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/source/_static/hackrtd.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,27 @@ a.trio-help-hint, .trio-help-hint a:link, .trio-help-hint a:visited {
text-decoration: none;
border-bottom: 1px solid;
}

/* 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 table th {
/* This is a trio specific override since we have long header names compared to other projects who've had issues
with wide tables (allowing wrapping just in the cells isn't enough to shrink tables meaningfully).
*/
white-space: normal !important;
}

.wy-table-responsive {
/* This makes very wide tables look ugly and extend past their parent... Maybe allowing the scroll bar isn't so
bad in comparison (after the above 2 fixes).
*/
overflow: visible !important;
}
}

0 comments on commit 088becd

Please sign in to comment.