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%; }
10 div
.body h4
{ font-size: 110%; }
12 /* toctree captions are styled like h2 */
13 div
.toctree-wrapper p
.caption
[role
=heading
] { font-size: 150%; }
15 /* Tighten up the layout slightly */
16 div
.body
{ padding: 0 15px 0 10px; }
17 div
.sphinxsidebarwrapper
{ padding: 1em 0.4em; }
18 div
.sphinxsidebar
{ font-size: inherit
;
21 /* Tweak document margins and don't force width */
23 margin: 20px 10px 0 10px;
27 /* Size the logo appropriately */
34 * Parameters for the display of function prototypes and such included
35 * from C source files.
37 dl
.function
, dl
.struct
, dl
.enum
{ margin-top: 2em; background-color: #ecf0f3; }
38 /* indent lines 2+ of multi-line function prototypes */
39 dl
.function dt
{ margin-left: 10em; text-indent: -10em; }
40 dt
.sig-object
{ font-size: larger
; }
41 div
.kernelindent
{ margin-left: 2em; margin-right: 4em; }
44 * Tweaks for our local TOC
46 div
.kerneltoc li
.toctree-l1
{ font-size: smaller
;
49 div
.kerneltoc li
.current
> a
{font-weight: bold
; }
50 div
.kerneltoc li
.toctree-l2
,li
.toctree-l3
{ font-size: small
;
53 list-style-type: none
;
55 div
.kerneltoc li
.current ul
{ margin-left: 0; }
56 div
.kerneltoc
{ background-color: #eeeeee; }
57 div
.kerneltoc li
.current ul
{ background-color: white
; }
60 * The CSS magic to toggle the contents on small screens.
62 label
.kernel-toc-title
{ display: none
; }
63 label
.kernel-toc-title:after
{
66 input
[type
=checkbox
]:checked
~ label
.kernel-toc-title:after
{
69 /* Hide the toggle on large screens */
70 input
.kernel-toc-toggle
{ display: none
; }
73 * Show and implement the toggle on small screens.
74 * The 875px width seems to be wired into alabaster.
76 @media screen and
(max-width: 875px) {
77 label
.kernel-toc-title
{ display: inline
;
80 input
[type
=checkbox
]:checked
~ div
.kerneltoc
{
83 h3
.kernel-toc-contents
{ display: inline
; }
84 div
.kerneltoc a
{ color: black
; }
87 /* Language selection menu */
91 * Make sure we don't overlap notes and warnings at the top of the
97 div
.language-selection
{
99 border: 1px solid
#cccccc;
107 div
.language-selection a
{
111 text-decoration: none
;
114 div
.language-selection ul
{
118 /* Align with the parent div */
126 border: 1px solid
#cccccc;
128 /* Never break menu item lines */
132 div
.language-selection:hover ul
{
136 div
.language-selection ul
li:hover
{