|
| 1 | +/* |
| 2 | + * Style sheet for the CSS2 specification |
| 3 | + * $Id: default.css,v 2.24 2006-04-06 22:32:30 bbos Exp $ |
| 4 | + */ |
| 5 | + |
| 6 | +BODY { |
| 7 | + /* text-align: justify; */ |
| 8 | + font-family: helvetica, sans-serif; |
| 9 | + /* For the REC: background: #def url(recbg.jpg); */ |
| 10 | +} |
| 11 | +H2, H3, H4, H5, H6 { |
| 12 | + text-align: left; |
| 13 | +} |
| 14 | + |
| 15 | +H1 { |
| 16 | + clear: left; |
| 17 | + margin-top: 2em; |
| 18 | +} |
| 19 | + |
| 20 | +DIV.navbar { |
| 21 | + text-align: center; |
| 22 | +} |
| 23 | + |
| 24 | +PRE { |
| 25 | + font-family: monospace; |
| 26 | + margin-left: 1em; |
| 27 | + font-size: 90% |
| 28 | +} |
| 29 | + |
| 30 | +ADDRESS { |
| 31 | + text-align: right; |
| 32 | + font-style: italic; |
| 33 | +} |
| 34 | + |
| 35 | +VAR { |
| 36 | + font-style: normal; |
| 37 | +} |
| 38 | +IMG { |
| 39 | + border: 0; |
| 40 | +} |
| 41 | +.toc { |
| 42 | + text-indent: 0; |
| 43 | +} |
| 44 | +P.toc-line { |
| 45 | + margin-top: 1em; |
| 46 | + margin-bottom: 1em; |
| 47 | + text-indent: 0; |
| 48 | +} |
| 49 | + |
| 50 | +/* I don't like all that blue text, how about this: */ |
| 51 | +/* It should be 'inherit', but Netscape inserts a random color :-( */ |
| 52 | +A.noxref:link, A.noxref:visited {color: black; /*color: inherit*/} |
| 53 | +DIV.example A:link, DIV.example A:visited {color: maroon; /*color: inherit*/} |
| 54 | +DIV.deprecated-html-example A:link, |
| 55 | +DIV.deprecated-html-example A:visited {color: red; /*color: inherit*/} |
| 56 | +.note A:link, .note A:visited {color: green; /*color: inherit*/} |
| 57 | + |
| 58 | +A.propdef-title { |
| 59 | + background: yellow; |
| 60 | +} |
| 61 | + |
| 62 | +A.descdef-title { |
| 63 | + color: yellow; |
| 64 | + background: green |
| 65 | +} |
| 66 | + |
| 67 | +/* TABLE {margin-left: 1em} */ |
| 68 | +DIV.propdef {margin: 1.2em 0} |
| 69 | + |
| 70 | +div.example { color: maroon } |
| 71 | +pre.example { color: maroon } |
| 72 | +pre.illegal-example { color: red } |
| 73 | +div.illegal-example { color: red } |
| 74 | +div.illegal-example p { color: black } |
| 75 | + |
| 76 | + |
| 77 | +div.html-example { color: maroon } |
| 78 | +pre.html-example { color: maroon } |
| 79 | +pre.illegal-html-example { color: red } |
| 80 | +div.illegal-html-example { color: red } |
| 81 | +div.illegal-html-example p { color: black } |
| 82 | +pre.deprecated-html-example { color: red } |
| 83 | +div.deprecated-html-example { color: red } |
| 84 | +div.deprecated-html-example p { color: black } |
| 85 | + |
| 86 | +div.xml-example { color: maroon } |
| 87 | +pre.xml-example { color: maroon } |
| 88 | +pre.illegal-xml-example { color: red } |
| 89 | +div.illegal-xml-example { color: red } |
| 90 | +div.illegal-xml-example p { color: black } |
| 91 | + |
| 92 | +div.dtd-example { color: maroon } |
| 93 | +pre.dtd-example { color: maroon } |
| 94 | +pre.illegal-dtd-example { color: red } |
| 95 | +div.illegal-dtd-example { color: red } |
| 96 | +div.illegal-dtd-example p { color: black } |
| 97 | + |
| 98 | +.note { |
| 99 | + /*font-weight: bold;*/ |
| 100 | + margin-top: 1em; |
| 101 | + margin-bottom: 1em; |
| 102 | + margin-left: 1em; |
| 103 | + margin-right: 1em; |
| 104 | + color: green |
| 105 | +} |
| 106 | + |
| 107 | +.normref { |
| 108 | + color: red; |
| 109 | +} |
| 110 | + |
| 111 | +.informref { |
| 112 | + color: green; |
| 113 | +} |
| 114 | + |
| 115 | +DIV.propdef TH { |
| 116 | + text-align: right; |
| 117 | +} |
| 118 | + |
| 119 | +DIV.descdef TH { |
| 120 | + text-align: right; |
| 121 | +} |
| 122 | + |
| 123 | +DIV.toc UL UL, DIV.toc OL OL {margin-left: 0} |
| 124 | +DIV.toc UL UL UL, DIV.toc OL OL OL {margin-left: 1em} |
| 125 | +DIV.toc UL UL UL UL, DIV.toc OL OL OL OL {margin-left: 0} |
| 126 | +LI.tocline1 {font-weight: bold} |
| 127 | +LI.tocline2 {font-weight: normal} |
| 128 | +LI.tocline4 {font-style: italic} |
| 129 | +/* DIV.subtoc UL, DIV.subtoc OL {list-style: none} */ |
| 130 | +/* The border in the following rule crashes NN4 on fonts.html :-( |
| 131 | +DIV.subtoc {padding: 1em; border: solid black thin; margin: 1em 0; |
| 132 | + background: #ddd} |
| 133 | +*/ |
| 134 | +UL.index { |
| 135 | + list-style: disc; /* Mac NS has problem with 'none' */ |
| 136 | + list-style: none; |
| 137 | +} |
| 138 | + |
| 139 | +DT { |
| 140 | + font-weight: bold |
| 141 | +} |
| 142 | + |
| 143 | +S, DEL {text-decoration: line-through; color: red; background: #fbb} |
| 144 | +U, INS {text-decoration: underline; background: #bfb} |
| 145 | +BODY>DEL,BODY>INS {display: block} |
| 146 | + |
| 147 | +DIV.figure { |
| 148 | + text-align: center; |
| 149 | + /*border: solid thin; |
| 150 | + width: 100%;*/ |
| 151 | + margin: 2.5em 0 |
| 152 | +} |
| 153 | +P.caption, CAPTION { |
| 154 | + text-align: center; |
| 155 | + font-style: italic; |
| 156 | + font-weight: bold; |
| 157 | + font-size: 90%; |
| 158 | + color: #088; |
| 159 | + margin: 1.5em 25% 0 25%; |
| 160 | +} |
| 161 | +DIV.toc, UL.index, DT { |
| 162 | + text-align: left |
| 163 | +} |
| 164 | +SUP { |
| 165 | + vertical-align: super; |
| 166 | + font-size: 80% |
| 167 | +} |
| 168 | + |
| 169 | +@media print { |
| 170 | +P { |
| 171 | + margin-top: 0; |
| 172 | + margin-bottom: 0; |
| 173 | + text-indent: 1em; |
| 174 | +} |
| 175 | + |
| 176 | +/* the following doesn't work for now, |
| 177 | + instead we rely on a patched version of html2ps which has this built-in */ |
| 178 | +.dlink { display: none } |
| 179 | + |
| 180 | +/* the following doesn't work for now, |
| 181 | + instead we rely on a patched version of html2ps which has this built-in */ |
| 182 | +DIV.navbar { |
| 183 | + display: none; |
| 184 | +} |
| 185 | + |
| 186 | +H1 { page-break-before: odd } |
| 187 | +} |
0 commit comments