1 /* SPDX-License-Identifier: GPL-2.0 */
3 * CSS tweaks for the Alabaster theme
6 /* Shrink the headers a bit */
7 div.body h1 { font-size: 180%; }
8 div.body h2 { font-size: 150%; }
9 div.body h3 { font-size: 130%; }
11 /* Tighten up the layout slightly */
12 div.body { padding: 0 15px 0 10px; }
13 div.sphinxsidebarwrapper { padding: 1em 0.4em; }
14 div.sphinxsidebar { font-size: inherit;
17 /* Tweak document margins and don't force width */
19 margin: 20px 10px 0 10px;
24 * Parameters for the display of function prototypes and such included
25 * from C source files.
27 dl.function, dl.struct, dl.enum { margin-top: 2em; background-color: #ecf0f3; }
28 /* indent lines 2+ of multi-line function prototypes */
29 dl.function dt { margin-left: 10em; text-indent: -10em; }
30 dt.sig-object { font-size: larger; }
31 div.kernelindent { margin-left: 2em; margin-right: 4em; }
34 * Tweaks for our local TOC
36 div.kerneltoc li.toctree-l1 { font-size: smaller;
39 div.kerneltoc li.current > a {font-weight: bold; }
40 div.kerneltoc li.toctree-l2,li.toctree-l3 { font-size: small;
43 list-style-type: none;
45 div.kerneltoc li.current ul { margin-left: 0; }
46 div.kerneltoc { background-color: #eeeeee; }
47 div.kerneltoc li.current ul { background-color: white; }
50 * The CSS magic to toggle the contents on small screens.
52 label.kernel-toc-title { display: none; }
53 label.kernel-toc-title:after {
56 input[type=checkbox]:checked ~ label.kernel-toc-title:after {
59 /* Hide the toggle on large screens */
60 input.kernel-toc-toggle { display: none; }
63 * Show and implement the toggle on small screens.
64 * The 875px width seems to be wired into alabaster.
66 @media screen and (max-width: 875px) {
67 label.kernel-toc-title { display: inline;
70 input[type=checkbox]:checked ~ div.kerneltoc {
73 h3.kernel-toc-contents { display: inline; }
74 div.kerneltoc a { color: black; }