From e397d7d6039672ad22b602fa65e0f57965c8b2e6 Mon Sep 17 00:00:00 2001 From: jlmitch5 Date: Thu, 16 Jun 2016 16:35:00 -0400 Subject: [PATCH] Fix table width on docsite This makes it so that table columns break by word instead of in between words. It also sets the minimum width of a column in the table to 100px, and makes tables horizontally scrollable on small screen sizes. --- docsite/_themes/srtd/static/css/theme.css | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docsite/_themes/srtd/static/css/theme.css b/docsite/_themes/srtd/static/css/theme.css index da0622c050..e2e7cebc1b 100644 --- a/docsite/_themes/srtd/static/css/theme.css +++ b/docsite/_themes/srtd/static/css/theme.css @@ -4738,7 +4738,17 @@ span[id*='MathJax-Span'] { } td { - word-break: break-all; + word-break: break-word; +} + +th, td { + min-width: 100px; +} + +table { + overflow-x: scroll; + display: block; + max-width: 100%; } @media print {