| 1 |
|
| 2 | |
| 3 | * CSS tweaks for the Alabaster theme
|
| 4 |
|
| 5 |
|
| 6 | div.body { max-width: 120em; }
|
| 7 |
|
| 8 |
|
| 9 | div.body h1 { font-size: 180%; }
|
| 10 | div.body h2 { font-size: 150%; }
|
| 11 | div.body h3 { font-size: 130%; }
|
| 12 | div.body h4 { font-size: 110%; }
|
| 13 |
|
| 14 |
|
| 15 | div.toctree-wrapper p.caption[role=heading] { font-size: 150%; }
|
| 16 |
|
| 17 |
|
| 18 | div.body { padding: 0 15px 0 10px; }
|
| 19 | div.sphinxsidebarwrapper { padding: 1em 0.4em; }
|
| 20 | div.sphinxsidebar { font-size: inherit;
|
| 21 | max-height: 100%;
|
| 22 | overflow-y: auto; }
|
| 23 |
|
| 24 | div.document {
|
| 25 | margin: 20px 10px 0 10px;
|
| 26 | width: auto;
|
| 27 | }
|
| 28 |
|
| 29 |
|
| 30 | img.logo {
|
| 31 | width: 104px;
|
| 32 | margin-bottom: 20px;
|
| 33 | }
|
| 34 |
|
| 35 |
|
| 36 | li { text-indent: 0em; }
|
| 37 |
|
| 38 | |
| 39 | * Parameters for the display of function prototypes and such included
|
| 40 | * from C source files.
|
| 41 |
|
| 42 | dl.function, dl.struct, dl.enum { margin-top: 2em; background-color: #ecf0f3; }
|
| 43 |
|
| 44 | dl.function dt { margin-left: 10em; text-indent: -10em; }
|
| 45 | |
| 46 | * Preserve C API signatures on one line and apply contained horizontal
|
| 47 | * scrolling to prevent them from exceeding their container width and
|
| 48 | * breaking page layout.
|
| 49 |
|
| 50 | dl.c { overflow-x: auto; overflow-y: hidden; }
|
| 51 | dl.c > dt.sig.sig-object { white-space: nowrap; }
|
| 52 | dt.sig-object { font-size: larger; }
|
| 53 | div.kernelindent { margin-left: 2em; margin-right: 4em; }
|
| 54 |
|
| 55 | |
| 56 | * Parameters for the display of function prototypes and such included
|
| 57 | * from Python source files.
|
| 58 |
|
| 59 | dl.py { margin-top: 2em; background-color: #ecf0f3; }
|
| 60 | dl.py.class { margin-left: 2em; text-indent: -2em; padding-left: 2em; }
|
| 61 | dl.py.method, dl.py.attribute { margin-left: 2em; text-indent: -2em; }
|
| 62 | dl.py li, pre { text-indent: 0em; padding-left: 0 !important; }
|
| 63 |
|
| 64 | |
| 65 | * Tweaks for our local TOC
|
| 66 |
|
| 67 | div.kerneltoc li.toctree-l1 { font-size: smaller;
|
| 68 | text-indent: -1em;
|
| 69 | margin-left: 1em; }
|
| 70 | div.kerneltoc li.current > a {font-weight: bold; }
|
| 71 | div.kerneltoc li.toctree-l2,li.toctree-l3 { font-size: small;
|
| 72 | text-indent: -1em;
|
| 73 | margin-left: 1em;
|
| 74 | list-style-type: none;
|
| 75 | }
|
| 76 | div.kerneltoc li.current ul { margin-left: 0; }
|
| 77 | div.kerneltoc { background-color: #eeeeee; }
|
| 78 | div.kerneltoc li.current ul { background-color: white; }
|
| 79 |
|
| 80 | |
| 81 | * Hide toctree captions on the welcome page, they should only be shown in the
|
| 82 | * sidebar.
|
| 83 |
|
| 84 | section#the-linux-kernel-documentation p.caption { display: none; }
|
| 85 |
|
| 86 | |
| 87 | * Make section titles bold in the sidebar, and decrease their bottom margin to
|
| 88 | * group them with their subsections.
|
| 89 |
|
| 90 | div.sphinxsidebar p.caption { font-weight: bold; margin-bottom: 0; }
|
| 91 | div.sphinxsidebar p.caption + ul { margin-top: 0; }
|
| 92 |
|
| 93 | |
| 94 | * The CSS magic to toggle the contents on small screens.
|
| 95 |
|
| 96 | label.kernel-toc-title { display: none; }
|
| 97 | label.kernel-toc-title:after {
|
| 98 | content: "[Hide]";
|
| 99 | }
|
| 100 | input[type=checkbox]:checked ~ label.kernel-toc-title:after {
|
| 101 | content: "[Show]";
|
| 102 | }
|
| 103 |
|
| 104 | input.kernel-toc-toggle { display: none; }
|
| 105 |
|
| 106 | |
| 107 | * Show and implement the toggle on small screens.
|
| 108 | * The 875px width seems to be wired into alabaster.
|
| 109 |
|
| 110 | @media screen and (max-width: 875px) {
|
| 111 | label.kernel-toc-title { display: inline;
|
| 112 | font-weight: bold;
|
| 113 | font-size: larger; }
|
| 114 | input[type=checkbox]:checked ~ div.kerneltoc {
|
| 115 | display: none;
|
| 116 | }
|
| 117 | h3.kernel-toc-contents { display: inline; }
|
| 118 | div.kerneltoc a { color: black; }
|
| 119 | }
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 | div.admonition {
|
| 124 | |
| 125 | * Make sure we don't overlap notes and warnings at the top of the
|
| 126 | * document.
|
| 127 |
|
| 128 | clear: both;
|
| 129 | }
|
| 130 |
|
| 131 | div.language-selection {
|
| 132 | background: #eeeeee;
|
| 133 | border: 1px solid #cccccc;
|
| 134 | margin-bottom: 1em;
|
| 135 | padding: .5em;
|
| 136 |
|
| 137 | position: relative;
|
| 138 | float: right;
|
| 139 | }
|
| 140 |
|
| 141 | div.language-selection a {
|
| 142 | display: block;
|
| 143 | padding: 0.5em;
|
| 144 | color: #333333;
|
| 145 | text-decoration: none;
|
| 146 | }
|
| 147 |
|
| 148 | div.language-selection ul {
|
| 149 | display: none;
|
| 150 | position: absolute;
|
| 151 |
|
| 152 |
|
| 153 | top: 100%;
|
| 154 | right: 0;
|
| 155 | margin: 0;
|
| 156 |
|
| 157 | list-style: none;
|
| 158 |
|
| 159 | background: #fafafa;
|
| 160 | border: 1px solid #cccccc;
|
| 161 |
|
| 162 |
|
| 163 | white-space: nowrap;
|
| 164 | }
|
| 165 |
|
| 166 | div.language-selection:hover ul {
|
| 167 | display: block;
|
| 168 | }
|
| 169 |
|
| 170 | div.language-selection ul li:hover {
|
| 171 | background: #dddddd;
|
| 172 | }
|
| 173 |
|
| 174 |
|
| 175 | div.body table.docutils a.reference {
|
| 176 | overflow-wrap: anywhere;
|
| 177 | }
|
| 178 |
|
| 179 |
|
| 180 | a {
|
| 181 | overflow-wrap: anywhere;
|
| 182 | }
|
| 183 |
|
| 184 |
|
| 185 | a.reference, a.reference:hover {
|
| 186 | border-bottom: none;
|
| 187 | text-decoration: underline;
|
| 188 | text-underline-offset: 0.3em;
|
| 189 | }
|
| 190 |
|
| 191 |
|
| 192 | div.sphinxsidebar a { border-bottom: none; }
|
| 193 | div.sphinxsidebar a:hover {
|
| 194 | border-bottom: none;
|
| 195 | text-decoration: underline;
|
| 196 | text-underline-offset: 0.3em;
|
| 197 | }
|
| 198 |
|
| 199 | a.manpage {
|
| 200 | font-style: normal;
|
| 201 | font-weight: bold;
|
| 202 | font-family: "Courier New", Courier, monospace;
|
| 203 | }
|