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