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