aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2016-07-03 04:09:32 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-05 13:39:51 -0400
commit9abaf979abb2845b2292d96401986b4845c51b9d (patch)
tree752427487bd8ee0500d953210662bcbd493218f6
parent5d55cd2ee7a869bbe2d2f9d9bd496b630cd1c847 (diff)
doc-rst: customize RTD theme, table & full width
The default table layout of the RTD theme does not fit for vast tables, like the ones we have in the linux_tv project. This has been discussed on the ML [1]. The RTD theme is a two column layout, with a navigation column on the left and a content column on the right: content column RTD theme's default is 800px as max width for the content, but we have tables with tons of columns, which need the full width of the view-port (BTW: *full width* is what DocBook's HTML is). table - sequences of whitespace should collapse into a single whitespace. - make the overflow auto (scrollbar if needed) - align caption "left" ("center" is unsuitable on vast tables) [1] http://article.gmane.org/gmane.linux.kernel/2216509 Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de>
-rw-r--r--Documentation/sphinx-static/theme_overrides.css21
1 files changed, 20 insertions, 1 deletions
diff --git a/Documentation/sphinx-static/theme_overrides.css b/Documentation/sphinx-static/theme_overrides.css
index 4d670dbf7ffa..ea06799214fd 100644
--- a/Documentation/sphinx-static/theme_overrides.css
+++ b/Documentation/sphinx-static/theme_overrides.css
@@ -1,9 +1,28 @@
1/* -*- coding: utf-8; mode: css -*- 1/* -*- coding: utf-8; mode: css -*-
2 * 2 *
3 * Sphinx HTML theme customization 3 * Sphinx HTML theme customization: read the doc
4 * 4 *
5 */ 5 */
6 6
7@media screen { 7@media screen {
8 8
9 /* content column
10 *
11 * RTD theme's default is 800px as max width for the content, but we have
12 * tables with tons of columns, which need the full width of the view-port.
13 */
14
15 .wy-nav-content{max-width: none; }
16
17 /* table:
18 *
19 * - Sequences of whitespace should collapse into a single whitespace.
20 * - make the overflow auto (scrollbar if needed)
21 * - align caption "left" ("center" is unsuitable on vast tables)
22 */
23
24 .wy-table-responsive table td { white-space: normal; }
25 .wy-table-responsive { overflow: auto; }
26 .rst-content table.docutils caption { text-align: left; font-size: 100%; }
27
9} 28}