12056b920SJonathan Corbet/* SPDX-License-Identifier: GPL-2.0 */ 22056b920SJonathan Corbet/* 32056b920SJonathan Corbet * CSS tweaks for the Alabaster theme 42056b920SJonathan Corbet */ 52056b920SJonathan Corbet 62056b920SJonathan Corbet/* Shrink the headers a bit */ 72056b920SJonathan Corbetdiv.body h1 { font-size: 180%; } 82056b920SJonathan Corbetdiv.body h2 { font-size: 150%; } 92056b920SJonathan Corbetdiv.body h3 { font-size: 130%; } 102056b920SJonathan Corbet 112056b920SJonathan Corbet/* Tighten up the layout slightly */ 122056b920SJonathan Corbetdiv.body { padding: 0 15px 0 10px; } 132056b920SJonathan Corbetdiv.sphinxsidebarwrapper { padding: 1em 0.4em; } 14*c404f5d4SJonathan Corbetdiv.sphinxsidebar { font-size: inherit; 15*c404f5d4SJonathan Corbet max-height: 100%; 16*c404f5d4SJonathan Corbet overflow-y: auto; } 17eaf710ceSJonathan Corbet/* Tweak document margins and don't force width */ 18eaf710ceSJonathan Corbetdiv.document { 19eaf710ceSJonathan Corbet margin: 20px 10px 0 10px; 20eaf710ceSJonathan Corbet width: auto; 21eaf710ceSJonathan Corbet} 22eaf710ceSJonathan Corbet 23eaf710ceSJonathan Corbet/* 24eaf710ceSJonathan Corbet * Parameters for the display of function prototypes and such included 25eaf710ceSJonathan Corbet * from C source files. 26eaf710ceSJonathan Corbet */ 27eaf710ceSJonathan Corbetdl.function, dl.struct, dl.enum { margin-top: 2em; background-color: #ecf0f3; } 28eaf710ceSJonathan Corbet/* indent lines 2+ of multi-line function prototypes */ 29eaf710ceSJonathan Corbetdl.function dt { margin-left: 10em; text-indent: -10em; } 30eaf710ceSJonathan Corbetdt.sig-object { font-size: larger; } 31eaf710ceSJonathan Corbetdiv.kernelindent { margin-left: 2em; margin-right: 4em; } 32*c404f5d4SJonathan Corbet 33*c404f5d4SJonathan Corbet/* 34*c404f5d4SJonathan Corbet * Tweaks for our local TOC 35*c404f5d4SJonathan Corbet */ 36*c404f5d4SJonathan Corbetdiv.kerneltoc li.toctree-l1 { font-size: smaller; 37*c404f5d4SJonathan Corbet text-indent: -1em; 38*c404f5d4SJonathan Corbet margin-left: 1em; } 39*c404f5d4SJonathan Corbetdiv.kerneltoc li.current > a {font-weight: bold; } 40*c404f5d4SJonathan Corbetdiv.kerneltoc li.toctree-l2,li.toctree-l3 { font-size: small; 41*c404f5d4SJonathan Corbet text-indent: -1em; 42*c404f5d4SJonathan Corbet margin-left: 1em; 43*c404f5d4SJonathan Corbet list-style-type: none; 44*c404f5d4SJonathan Corbet } 45*c404f5d4SJonathan Corbetdiv.kerneltoc li.current ul { margin-left: 0; } 46*c404f5d4SJonathan Corbetdiv.kerneltoc { background-color: #eeeeee; } 47*c404f5d4SJonathan Corbetdiv.kerneltoc li.current ul { background-color: white; } 48*c404f5d4SJonathan Corbet 49*c404f5d4SJonathan Corbet/* 50*c404f5d4SJonathan Corbet * The CSS magic to toggle the contents on small screens. 51*c404f5d4SJonathan Corbet */ 52*c404f5d4SJonathan Corbetlabel.kernel-toc-title { display: none; } 53*c404f5d4SJonathan Corbetlabel.kernel-toc-title:after { 54*c404f5d4SJonathan Corbet content: "[Hide]"; 55*c404f5d4SJonathan Corbet} 56*c404f5d4SJonathan Corbetinput[type=checkbox]:checked ~ label.kernel-toc-title:after { 57*c404f5d4SJonathan Corbet content: "[Show]"; 58*c404f5d4SJonathan Corbet} 59*c404f5d4SJonathan Corbet/* Hide the toggle on large screens */ 60*c404f5d4SJonathan Corbetinput.kernel-toc-toggle { display: none; } 61*c404f5d4SJonathan Corbet 62*c404f5d4SJonathan Corbet/* 63*c404f5d4SJonathan Corbet * Show and implement the toggle on small screens. 64*c404f5d4SJonathan Corbet * The 875px width seems to be wired into alabaster. 65*c404f5d4SJonathan Corbet */ 66*c404f5d4SJonathan Corbet@media screen and (max-width: 875px) { 67*c404f5d4SJonathan Corbet label.kernel-toc-title { display: inline; 68*c404f5d4SJonathan Corbet font-weight: bold; 69*c404f5d4SJonathan Corbet font-size: larger; } 70*c404f5d4SJonathan Corbet input[type=checkbox]:checked ~ div.kerneltoc { 71*c404f5d4SJonathan Corbet display: none; 72*c404f5d4SJonathan Corbet } 73*c404f5d4SJonathan Corbet h3.kernel-toc-contents { display: inline; } 74*c404f5d4SJonathan Corbet div.kerneltoc a { color: black; } 75*c404f5d4SJonathan Corbet} 76