]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/userguide: avoid horizontal scroll on rtd
authorJason Ish <jason.ish@oisf.net>
Tue, 30 May 2023 20:51:17 +0000 (14:51 -0600)
committerVictor Julien <vjulien@oisf.net>
Sat, 15 Jul 2023 15:12:51 +0000 (17:12 +0200)
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.

doc/userguide/_static/css/suricata.css

index 5fdbbf11181add1af7fdf27f17b7d54b03849cd6..43dc06b74e3eb2a8f8854d101040aab745589ebc 100644 (file)
 .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;
+}