| 1 |
/* |
| 2 |
CSS for TexInfo/HTML files. |
| 3 |
|
| 4 |
Copyright (C) 2015-2021 Assaf Gordon ([email protected]) |
| 5 |
|
| 6 |
License: |
| 7 |
GNU All Permissive License |
| 8 |
https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html |
| 9 |
|
| 10 |
Copying and distribution of this file, with or without modification, |
| 11 |
are permitted in any medium without royalty provided the copyright |
| 12 |
notice and this notice are preserved. This file is offered as-is, |
| 13 |
without any warranty. |
| 14 |
|
| 15 |
|
| 16 |
The used tags/classes were collected from a Texinfo-generated HTML using: |
| 17 |
|
| 18 |
cd coreutils |
| 19 |
makeinfo --html --no-split -o coreutils.html doc/coreutils.texi |
| 20 |
cat coreutils.html | sed 's/</\n</g' | sed 's;>.*;>;g' \ |
| 21 |
| grep '^<' | grep 'class=' | sort -u \ |
| 22 |
| perl -lane 'm/<(\w+) .*class="([-\w]+)"/ ; print $1, "\t", $2' \ |
| 23 |
| sort -u |
| 24 |
|
| 25 |
*/ |
| 26 |
body { |
| 27 |
font-family: sans-serif; |
| 28 |
font-size: 16px; |
| 29 |
margin: 1em; |
| 30 |
|
| 31 |
overflow-x: hidden; /* Coupled with the div.header trick, |
| 32 |
this will extend the header lines |
| 33 |
access the entire page width without causing |
| 34 |
a horizontal scroll bar to appear. */ |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
a { |
| 39 |
text-decoration: none; |
| 40 |
outline-style: none; |
| 41 |
color: blue; |
| 42 |
} |
| 43 |
a:visited { |
| 44 |
color: rgb(16,0,112); |
| 45 |
} |
| 46 |
a:hover { |
| 47 |
text-decoration: underline; |
| 48 |
} |
| 49 |
|
| 50 |
|
| 51 |
/***************************************************** |
| 52 |
Titles / Headers |
| 53 |
******************************************************/ |
| 54 |
|
| 55 |
/* @settitle: |
| 56 |
The title of the document at the top of the document/header */ |
| 57 |
h1.settitle { |
| 58 |
color: rgb(51,70,131); |
| 59 |
text-shadow: rgb(153,153,153) 1px 1px 0px; |
| 60 |
} |
| 61 |
|
| 62 |
/* The title at the beginning of the document, before the @menu */ |
| 63 |
h1.top { |
| 64 |
color: rgb(51,70,131); |
| 65 |
text-shadow: rgb(153,153,153) 1px 1px 0px; |
| 66 |
} |
| 67 |
|
| 68 |
/* @chapter */ |
| 69 |
h2.chapter { |
| 70 |
} |
| 71 |
|
| 72 |
h2.appendix { } |
| 73 |
h2.unnumbered { } |
| 74 |
|
| 75 |
/* @section */ |
| 76 |
h3.section { |
| 77 |
} |
| 78 |
/* @unnumberedsec */ |
| 79 |
h3.unnumberedsec { |
| 80 |
} |
| 81 |
/* @heading (seems to be only used in fdl.texi) */ |
| 82 |
h3.heading { |
| 83 |
} |
| 84 |
|
| 85 |
/* @subsection */ |
| 86 |
h4.subsection { |
| 87 |
} |
| 88 |
|
| 89 |
|
| 90 |
/************************************************** |
| 91 |
Short Contents (if @shortcontents command is used) |
| 92 |
***************************************************/ |
| 93 |
h2.shortcontents-heading { } |
| 94 |
div.shortcontents { } |
| 95 |
div.shortcontents ul { } |
| 96 |
div.shortcontents ul li { } |
| 97 |
|
| 98 |
|
| 99 |
/************************************************** |
| 100 |
Contents (if @contents command is used) |
| 101 |
***************************************************/ |
| 102 |
h2.contents-heading { } |
| 103 |
div.contents { } |
| 104 |
div.contents ul { } |
| 105 |
div.contents ul li { } |
| 106 |
|
| 107 |
|
| 108 |
/* The @menu table */ |
| 109 |
table.menu { } |
| 110 |
pre.menu-comment {} |
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
/************************************ |
| 115 |
@example and @verbatim |
| 116 |
************************************/ |
| 117 |
div.example { |
| 118 |
margin-left: 2em; |
| 119 |
margin-right: 2em; |
| 120 |
} |
| 121 |
div.example pre.example { |
| 122 |
/* Round Corners */ |
| 123 |
-webkit-border-radius: 3px; |
| 124 |
-moz-border-radius: 3px; |
| 125 |
border-radius: 3px; |
| 126 |
border: 1px solid #c0c0c0; |
| 127 |
|
| 128 |
padding: 1ex; |
| 129 |
background-color: #f3f3f3; |
| 130 |
} |
| 131 |
|
| 132 |
/* Note: @verbatim is also rendered inside a 'div.example' */ |
| 133 |
div.example pre.verbatim { |
| 134 |
/* Round Corners */ |
| 135 |
-webkit-border-radius: 3px; |
| 136 |
-moz-border-radius: 3px; |
| 137 |
border-radius: 3px; |
| 138 |
border: 1px solid #c0c0c0; |
| 139 |
|
| 140 |
padding: 1ex; |
| 141 |
background-color: #f3f3f3; |
| 142 |
} |
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
/************************************ |
| 147 |
@smallexample |
| 148 |
************************************/ |
| 149 |
div.smallexample { |
| 150 |
} |
| 151 |
div.smallexample pre.smallexample { |
| 152 |
} |
| 153 |
|
| 154 |
/*********************************** |
| 155 |
@display |
| 156 |
***********************************/ |
| 157 |
div.display { |
| 158 |
} |
| 159 |
div.display pre.display { |
| 160 |
} |
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
/************************************** |
| 165 |
@footnote |
| 166 |
**************************************/ |
| 167 |
div.footnote { } |
| 168 |
h4.footnotes-heading { } |
| 169 |
|
| 170 |
/************************************** |
| 171 |
The header at the top of each page / section |
| 172 |
(the next/previous/top/up links) |
| 173 |
**************************************/ |
| 174 |
div.header { |
| 175 |
padding-top: 0.5ex; |
| 176 |
padding-bottom: 0.5ex; |
| 177 |
background-color: #ddddff; |
| 178 |
|
| 179 |
/* This will extend the background color of the header |
| 180 |
bar to the entire width of the page (and beyond), |
| 181 |
requires 'overflow-x: hidden' in the 'body'. */ |
| 182 |
padding-left: 3000px; |
| 183 |
margin-left: -3000px; |
| 184 |
padding-right: 3000px; |
| 185 |
margin-right: -3000px; |
| 186 |
} |
| 187 |
|
| 188 |
/* Disable any additional margins */ |
| 189 |
div.header p { |
| 190 |
margin: 0; |
| 191 |
} |
| 192 |
div.header p a { |
| 193 |
color: blue; |
| 194 |
} |
| 195 |
|
| 196 |
|
| 197 |
/************************************** |
| 198 |
@table is rendered as <dl> (defnition list), |
| 199 |
@item is rendered as <dt> (definition term), |
| 200 |
text is rendered as <dd> (definition description) |
| 201 |
**************************************/ |
| 202 |
dl { |
| 203 |
margin: 0 1em; |
| 204 |
} |
| 205 |
dl dt { |
| 206 |
margin: 1em 0; |
| 207 |
} |
| 208 |
dl dd { |
| 209 |
margin-left: 2em; |
| 210 |
} |
| 211 |
|
| 212 |
/******************************************************* |
| 213 |
Text Styles |
| 214 |
*******************************************************/ |
| 215 |
|
| 216 |
/* @var{} */ |
| 217 |
var { |
| 218 |
color: #CC0000; |
| 219 |
} |
| 220 |
|
| 221 |
/* @samp{} */ |
| 222 |
samp { |
| 223 |
color: #6600CC; |
| 224 |
} |
| 225 |
|
| 226 |
/* @env{} will result in <p><code>X</code></p> */ |
| 227 |
p code { |
| 228 |
color: #532c14; |
| 229 |
} |
| 230 |
|
| 231 |
/* @option{} */ |
| 232 |
span.nocodebreak { |
| 233 |
color: #5D4C46; |
| 234 |
} |