From: Jason Ish Date: Tue, 30 May 2023 20:51:17 +0000 (-0600) Subject: doc/userguide: avoid horizontal scroll on rtd X-Git-Tag: suricata-7.0.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad94ebddb723cb7f30a9aeb68a32c297dd108cab;p=thirdparty%2Fsuricata.git doc/userguide: avoid horizontal scroll on rtd Add CSS to avoid horizontal scroll in tables on ReadTheDocs. This will wrap the text instead. Also, vertically align to top so if a cell does wrap, other cells that do not wrap don't place the text in the middle of the cell. --- diff --git a/doc/userguide/_static/css/suricata.css b/doc/userguide/_static/css/suricata.css index 5fdbbf1118..43dc06b74e 100644 --- a/doc/userguide/_static/css/suricata.css +++ b/doc/userguide/_static/css/suricata.css @@ -25,3 +25,10 @@ .example-rule-options { color: #00f; } + +/* Make tables wrap text to avoid requiring the user to horizontally + * scroll. */ +.wy-table-responsive table td, .wy-table-responsive table th { + white-space: inherit; + vertical-align: top !important; +}