From cd04bb9c4b4526360cdd4d0818622af9b0e94e2f Mon Sep 17 00:00:00 2001 From: Andrii Doroshenko Date: Sun, 26 Apr 2020 16:28:44 +0300 Subject: [PATCH] Autowrap text inside tables by default (#3448) --- _static/css/custom.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_static/css/custom.css b/_static/css/custom.css index c78fc9c65..155ef8a9d 100644 --- a/_static/css/custom.css +++ b/_static/css/custom.css @@ -463,6 +463,18 @@ footer, background-color: var(--table-row-odd-background-color); } +/* Override table no-wrap */ +/* The first column cells are not verbose, no need to wrap them */ +.wy-table-responsive table td:not(:nth-child(1)), +.wy-table-responsive table th:not(:nth-child(1)) { + white-space: normal; +} + +/* Make sure not to wrap keyboard shortcuts */ +.wy-table-responsive table td kbd { + white-space: nowrap; +} + /* Code display tweaks */ code,