diff mbox series

doc/sphinx-static/theme_overrides.css: switch to a fixed width documentation

Message ID 20260429-fixed-width-html-v1-1-c5673a4828d6@bootlin.com
State New
Headers show
Series doc/sphinx-static/theme_overrides.css: switch to a fixed width documentation | expand

Commit Message

Antonin Godard April 29, 2026, 9:30 a.m. UTC
Like yocto-docs[1], switch to fixed-width documentation for the HTML
output.

[1]: https://git.yoctoproject.org/yocto-docs/commit/?id=98234c9d3a0846d719630914bea8599da9f51374

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 doc/sphinx-static/theme_overrides.css | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)


---
base-commit: b79667b6599494a0ed209d48bf8bbb7e8921d926
change-id: 20260429-fixed-width-html-9eb500e8823e
diff mbox series

Patch

diff --git a/doc/sphinx-static/theme_overrides.css b/doc/sphinx-static/theme_overrides.css
index e362677a7f9..3a303c8e1ce 100644
--- a/doc/sphinx-static/theme_overrides.css
+++ b/doc/sphinx-static/theme_overrides.css
@@ -99,14 +99,19 @@  em {
 [alt='Permalink'] { color: #eee; }
 [alt='Permalink']:hover { color: black; }
 
+.literal-block {
+    background: #f8f8f8;
+}
+
 @media screen {
-    /* 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.
-     */
+    .wy-nav-content {
+       max-width: 1000px;
+       background: #fcfcfc;
+    }
 
-    .wy-nav-content{max-width: none; }
+    .wy-nav-content-wrap {
+       background: #efefef;
+    }
 
     /* inline literal: drop the borderbox, padding and red color */
     code, .rst-content tt, .rst-content code {