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 11eed94315SVegard Nossum/* toctree captions are styled like h2 */ 12eed94315SVegard Nossumdiv.toctree-wrapper p.caption[role=heading] { font-size: 150%; } 13eed94315SVegard Nossum 142056b920SJonathan Corbet/* Tighten up the layout slightly */ 152056b920SJonathan Corbetdiv.body { padding: 0 15px 0 10px; } 162056b920SJonathan Corbetdiv.sphinxsidebarwrapper { padding: 1em 0.4em; } 17c404f5d4SJonathan Corbetdiv.sphinxsidebar { font-size: inherit; 18c404f5d4SJonathan Corbet max-height: 100%; 19c404f5d4SJonathan Corbet overflow-y: auto; } 20eaf710ceSJonathan Corbet/* Tweak document margins and don't force width */ 21eaf710ceSJonathan Corbetdiv.document { 22eaf710ceSJonathan Corbet margin: 20px 10px 0 10px; 23eaf710ceSJonathan Corbet width: auto; 24eaf710ceSJonathan Corbet} 25eaf710ceSJonathan Corbet 26*d49af114SVegard Nossum/* Size the logo appropriately */ 27*d49af114SVegard Nossumimg.logo { 28*d49af114SVegard Nossum width: 104px; 29*d49af114SVegard Nossum margin-bottom: 20px; 30*d49af114SVegard Nossum} 31*d49af114SVegard Nossum 32eaf710ceSJonathan Corbet/* 33eaf710ceSJonathan Corbet * Parameters for the display of function prototypes and such included 34eaf710ceSJonathan Corbet * from C source files. 35eaf710ceSJonathan Corbet */ 36eaf710ceSJonathan Corbetdl.function, dl.struct, dl.enum { margin-top: 2em; background-color: #ecf0f3; } 37eaf710ceSJonathan Corbet/* indent lines 2+ of multi-line function prototypes */ 38eaf710ceSJonathan Corbetdl.function dt { margin-left: 10em; text-indent: -10em; } 39eaf710ceSJonathan Corbetdt.sig-object { font-size: larger; } 40eaf710ceSJonathan Corbetdiv.kernelindent { margin-left: 2em; margin-right: 4em; } 41c404f5d4SJonathan Corbet 42c404f5d4SJonathan Corbet/* 43c404f5d4SJonathan Corbet * Tweaks for our local TOC 44c404f5d4SJonathan Corbet */ 45c404f5d4SJonathan Corbetdiv.kerneltoc li.toctree-l1 { font-size: smaller; 46c404f5d4SJonathan Corbet text-indent: -1em; 47c404f5d4SJonathan Corbet margin-left: 1em; } 48c404f5d4SJonathan Corbetdiv.kerneltoc li.current > a {font-weight: bold; } 49c404f5d4SJonathan Corbetdiv.kerneltoc li.toctree-l2,li.toctree-l3 { font-size: small; 50c404f5d4SJonathan Corbet text-indent: -1em; 51c404f5d4SJonathan Corbet margin-left: 1em; 52c404f5d4SJonathan Corbet list-style-type: none; 53c404f5d4SJonathan Corbet } 54c404f5d4SJonathan Corbetdiv.kerneltoc li.current ul { margin-left: 0; } 55c404f5d4SJonathan Corbetdiv.kerneltoc { background-color: #eeeeee; } 56c404f5d4SJonathan Corbetdiv.kerneltoc li.current ul { background-color: white; } 57c404f5d4SJonathan Corbet 58c404f5d4SJonathan Corbet/* 59c404f5d4SJonathan Corbet * The CSS magic to toggle the contents on small screens. 60c404f5d4SJonathan Corbet */ 61c404f5d4SJonathan Corbetlabel.kernel-toc-title { display: none; } 62c404f5d4SJonathan Corbetlabel.kernel-toc-title:after { 63c404f5d4SJonathan Corbet content: "[Hide]"; 64c404f5d4SJonathan Corbet} 65c404f5d4SJonathan Corbetinput[type=checkbox]:checked ~ label.kernel-toc-title:after { 66c404f5d4SJonathan Corbet content: "[Show]"; 67c404f5d4SJonathan Corbet} 68c404f5d4SJonathan Corbet/* Hide the toggle on large screens */ 69c404f5d4SJonathan Corbetinput.kernel-toc-toggle { display: none; } 70c404f5d4SJonathan Corbet 71c404f5d4SJonathan Corbet/* 72c404f5d4SJonathan Corbet * Show and implement the toggle on small screens. 73c404f5d4SJonathan Corbet * The 875px width seems to be wired into alabaster. 74c404f5d4SJonathan Corbet */ 75c404f5d4SJonathan Corbet@media screen and (max-width: 875px) { 76c404f5d4SJonathan Corbet label.kernel-toc-title { display: inline; 77c404f5d4SJonathan Corbet font-weight: bold; 78c404f5d4SJonathan Corbet font-size: larger; } 79c404f5d4SJonathan Corbet input[type=checkbox]:checked ~ div.kerneltoc { 80c404f5d4SJonathan Corbet display: none; 81c404f5d4SJonathan Corbet } 82c404f5d4SJonathan Corbet h3.kernel-toc-contents { display: inline; } 83c404f5d4SJonathan Corbet div.kerneltoc a { color: black; } 84c404f5d4SJonathan Corbet} 85