summaryrefslogtreecommitdiff
path: root/Documentation/sphinx-static/custom.css
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/sphinx-static/custom.css')
-rw-r--r--Documentation/sphinx-static/custom.css26
1 files changed, 16 insertions, 10 deletions
diff --git a/Documentation/sphinx-static/custom.css b/Documentation/sphinx-static/custom.css
index f91393426a50..6c03dca44c82 100644
--- a/Documentation/sphinx-static/custom.css
+++ b/Documentation/sphinx-static/custom.css
@@ -3,6 +3,8 @@
* CSS tweaks for the Alabaster theme
*/
+div.body { max-width: 120em; }
+
/* Shrink the headers a bit */
div.body h1 { font-size: 180%; }
div.body h2 { font-size: 150%; }
@@ -30,7 +32,7 @@ img.logo {
margin-bottom: 20px;
}
-/* The default is to use -1em, wich makes it override text */
+/* The default is to use -1em, which makes it override text */
li { text-indent: 0em; }
/*
@@ -76,6 +78,19 @@ div.kerneltoc { background-color: #eeeeee; }
div.kerneltoc li.current ul { background-color: white; }
/*
+ * Hide toctree captions on the welcome page, they should only be shown in the
+ * sidebar.
+ */
+section#the-linux-kernel-documentation p.caption { display: none; }
+
+/*
+ * Make section titles bold in the sidebar, and decrease their bottom margin to
+ * group them with their subsections.
+ */
+div.sphinxsidebar p.caption { font-weight: bold; margin-bottom: 0; }
+div.sphinxsidebar p.caption + ul { margin-top: 0; }
+
+/*
* The CSS magic to toggle the contents on small screens.
*/
label.kernel-toc-title { display: none; }
@@ -156,15 +171,6 @@ div.language-selection ul li:hover {
background: #dddddd;
}
-/*
- * Let long inline literals in paragraph text wrap as needed to prevent
- * overflow.
- */
-code.docutils.literal span.pre {
- white-space: normal;
- overflow-wrap: anywhere;
-}
-
/* Let rendered reference links in tables wrap when needed. */
div.body table.docutils a.reference {
overflow-wrap: anywhere;