| 1 |
/* ***** BEGIN LICENSE BLOCK ***** |
| 2 |
* Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 3 |
* |
| 4 |
* The contents of this file are subject to the Mozilla Public License Version |
| 5 |
* 1.1 (the "License"); you may not use this file except in compliance with |
| 6 |
* the License. You may obtain a copy of the License at |
| 7 |
* http://www.mozilla.org/MPL/ |
| 8 |
* |
| 9 |
* Software distributed under the License is distributed on an "AS IS" basis, |
| 10 |
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 11 |
* for the specific language governing rights and limitations under the |
| 12 |
* License. |
| 13 |
* |
| 14 |
* The Original Code is mozilla.org code. |
| 15 |
* |
| 16 |
* The Initial Developer of the Original Code is |
| 17 |
* Netscape Communications Corporation. |
| 18 |
* Portions created by the Initial Developer are Copyright (C) 1998 |
| 19 |
* the Initial Developer. All Rights Reserved. |
| 20 |
* |
| 21 |
* Contributor(s): |
| 22 |
* Blake Ross <[email protected]> |
| 23 |
* |
| 24 |
* Alternatively, the contents of this file may be used under the terms of |
| 25 |
* either of the GNU General Public License Version 2 or later (the "GPL"), |
| 26 |
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 27 |
* in which case the provisions of the GPL or the LGPL are applicable instead |
| 28 |
* of those above. If you wish to allow use of your version of this file only |
| 29 |
* under the terms of either the GPL or the LGPL, and not to allow others to |
| 30 |
* use your version of this file under the terms of the MPL, indicate your |
| 31 |
* decision by deleting the provisions above and replace them with the notice |
| 32 |
* and other provisions required by the GPL or the LGPL. If you do not delete |
| 33 |
* the provisions above, a recipient may use your version of this file under |
| 34 |
* the terms of any one of the MPL, the GPL or the LGPL. |
| 35 |
* |
| 36 |
* ***** END LICENSE BLOCK ***** */ |
| 37 |
|
| 38 |
@namespace url(http://www.w3.org/1999/xhtml); |
| 39 |
@namespace svg url(http://www.w3.org/2000/svg); |
| 40 |
|
| 41 |
/* blocks */ |
| 42 |
|
| 43 |
div, map, dt, isindex, form { |
| 44 |
display: block; |
| 45 |
} |
| 46 |
|
| 47 |
body { |
| 48 |
display: block; |
| 49 |
} |
| 50 |
|
| 51 |
p, dl, multicol { |
| 52 |
display: block; |
| 53 |
margin: 1em 0; |
| 54 |
} |
| 55 |
|
| 56 |
dd { |
| 57 |
display: block; |
| 58 |
margin-left: 40px; |
| 59 |
} |
| 60 |
|
| 61 |
blockquote { |
| 62 |
display: block; |
| 63 |
margin: 1em; |
| 64 |
} |
| 65 |
|
| 66 |
address { |
| 67 |
display: block; |
| 68 |
font-style: italic; |
| 69 |
} |
| 70 |
|
| 71 |
center { |
| 72 |
display: block; |
| 73 |
text-align: center; |
| 74 |
} |
| 75 |
|
| 76 |
blockquote[type=cite] { |
| 77 |
display: block; |
| 78 |
margin: 1em 0em; |
| 79 |
border-color: blue; |
| 80 |
border-width: thin; |
| 81 |
} |
| 82 |
|
| 83 |
h1 { |
| 84 |
display: block; |
| 85 |
font-size: 2em; |
| 86 |
font-weight: bold; |
| 87 |
margin: .67em 0; |
| 88 |
} |
| 89 |
|
| 90 |
h2 { |
| 91 |
display: block; |
| 92 |
font-size: 1.5em; |
| 93 |
font-weight: bold; |
| 94 |
margin: .83em 0; |
| 95 |
} |
| 96 |
|
| 97 |
h3 { |
| 98 |
display: block; |
| 99 |
font-size: 1.17em; |
| 100 |
font-weight: bold; |
| 101 |
margin: 1em 0; |
| 102 |
} |
| 103 |
|
| 104 |
h4 { |
| 105 |
display: block; |
| 106 |
font-weight: bold; |
| 107 |
margin: 1.33em 0; |
| 108 |
} |
| 109 |
|
| 110 |
h5 { |
| 111 |
display: block; |
| 112 |
font-size: 0.83em; |
| 113 |
font-weight: bold; |
| 114 |
margin: 1.67em 0; |
| 115 |
} |
| 116 |
|
| 117 |
h6 { |
| 118 |
display: block; |
| 119 |
font-size: 0.67em; |
| 120 |
font-weight: bold; |
| 121 |
margin: 2.33em 0; |
| 122 |
} |
| 123 |
|
| 124 |
pre { |
| 125 |
display: block; |
| 126 |
font-family: monospace; |
| 127 |
white-space: pre-wrap; |
| 128 |
margin: 1em 0; |
| 129 |
} |
| 130 |
|
| 131 |
/* tables */ |
| 132 |
|
| 133 |
table { |
| 134 |
display: table; |
| 135 |
border-spacing: 2px; |
| 136 |
border-collapse: separate; |
| 137 |
margin-top: 0; |
| 138 |
margin-bottom: 0; |
| 139 |
text-indent: 0; |
| 140 |
} |
| 141 |
|
| 142 |
table[align="left"] { |
| 143 |
float: left; |
| 144 |
} |
| 145 |
|
| 146 |
table[align="right"] { |
| 147 |
float: right; |
| 148 |
} |
| 149 |
|
| 150 |
table[rules]:not([rules="none"]) { |
| 151 |
border-collapse: collapse; |
| 152 |
} |
| 153 |
|
| 154 |
/* caption inherits from table not table-outer */ |
| 155 |
caption { |
| 156 |
display: table-caption; |
| 157 |
text-align: center; |
| 158 |
} |
| 159 |
|
| 160 |
table[align="center"] > caption { |
| 161 |
margin-left: auto; |
| 162 |
margin-right: auto; |
| 163 |
} |
| 164 |
|
| 165 |
table[align="center"] > caption[align="left"] { |
| 166 |
margin-right: 0; |
| 167 |
} |
| 168 |
|
| 169 |
table[align="center"] > caption[align="right"] { |
| 170 |
margin-left: 0; |
| 171 |
} |
| 172 |
|
| 173 |
tr { |
| 174 |
display: table-row; |
| 175 |
vertical-align: inherit; |
| 176 |
} |
| 177 |
|
| 178 |
col { |
| 179 |
display: table-column; |
| 180 |
} |
| 181 |
|
| 182 |
colgroup { |
| 183 |
display: table-column-group; |
| 184 |
} |
| 185 |
|
| 186 |
tbody { |
| 187 |
display: table-row-group; |
| 188 |
vertical-align: middle; |
| 189 |
} |
| 190 |
|
| 191 |
thead { |
| 192 |
display: table-header-group; |
| 193 |
vertical-align: middle; |
| 194 |
} |
| 195 |
|
| 196 |
tfoot { |
| 197 |
display: table-footer-group; |
| 198 |
vertical-align: middle; |
| 199 |
} |
| 200 |
|
| 201 |
/* for XHTML tables without tbody */ |
| 202 |
table > tr { |
| 203 |
vertical-align: middle; |
| 204 |
} |
| 205 |
|
| 206 |
td { |
| 207 |
display: table-cell; |
| 208 |
vertical-align: inherit; |
| 209 |
text-align: inherit; |
| 210 |
padding: 1px; |
| 211 |
} |
| 212 |
|
| 213 |
th { |
| 214 |
display: table-cell; |
| 215 |
vertical-align: inherit; |
| 216 |
font-weight: bold; |
| 217 |
padding: 1px; |
| 218 |
} |
| 219 |
|
| 220 |
/* inlines */ |
| 221 |
|
| 222 |
b, strong { |
| 223 |
/* ADE doesn't support bolder with embedded fonts */ |
| 224 |
font-weight: bold; |
| 225 |
} |
| 226 |
|
| 227 |
i, cite, em, var, dfn { |
| 228 |
font-style: italic; |
| 229 |
} |
| 230 |
|
| 231 |
tt, code, kbd, samp { |
| 232 |
font-family: monospace; |
| 233 |
} |
| 234 |
|
| 235 |
u, ins { |
| 236 |
text-decoration: underline; |
| 237 |
} |
| 238 |
|
| 239 |
s, strike, del { |
| 240 |
text-decoration: line-through; |
| 241 |
} |
| 242 |
|
| 243 |
blink { |
| 244 |
text-decoration: blink; |
| 245 |
} |
| 246 |
|
| 247 |
big { |
| 248 |
font-size: larger; |
| 249 |
} |
| 250 |
|
| 251 |
small { |
| 252 |
font-size: smaller; |
| 253 |
} |
| 254 |
|
| 255 |
sub { |
| 256 |
vertical-align: sub; |
| 257 |
font-size: smaller; |
| 258 |
line-height: normal; |
| 259 |
} |
| 260 |
|
| 261 |
sup { |
| 262 |
vertical-align: super; |
| 263 |
font-size: smaller; |
| 264 |
line-height: normal; |
| 265 |
} |
| 266 |
|
| 267 |
nobr { |
| 268 |
white-space: nowrap; |
| 269 |
} |
| 270 |
|
| 271 |
/* titles */ |
| 272 |
abbr[title], acronym[title] { |
| 273 |
border-bottom: dotted 1px; |
| 274 |
} |
| 275 |
|
| 276 |
/* lists */ |
| 277 |
|
| 278 |
ul, menu, dir { |
| 279 |
display: block; |
| 280 |
list-style-type: disc; |
| 281 |
margin: 1em 0; |
| 282 |
} |
| 283 |
|
| 284 |
ol { |
| 285 |
display: block; |
| 286 |
list-style-type: decimal; |
| 287 |
margin: 1em 0; |
| 288 |
} |
| 289 |
|
| 290 |
ol[type="a"] { |
| 291 |
list-style-type: lower-alpha; |
| 292 |
} |
| 293 |
|
| 294 |
ol[type="A"] { |
| 295 |
list-style-type: upper-alpha; |
| 296 |
} |
| 297 |
|
| 298 |
ol[type="i"] { |
| 299 |
list-style-type: lower-roman; |
| 300 |
} |
| 301 |
|
| 302 |
ol[type="I"] { |
| 303 |
list-style-type: upper-roman; |
| 304 |
} |
| 305 |
|
| 306 |
li { |
| 307 |
display: list-item; |
| 308 |
} |
| 309 |
|
| 310 |
/* nested lists have no top/bottom margins */ |
| 311 |
ul ul, ul ol, ul dir, ul menu, ul dl, |
| 312 |
ol ul, ol ol, ol dir, ol menu, ol dl, |
| 313 |
dir ul, dir ol, dir dir, dir menu, dir dl, |
| 314 |
menu ul, menu ol, menu dir, menu menu, menu dl, |
| 315 |
dl ul, dl ol, dl dir, dl menu, dl dl { |
| 316 |
margin-top: 0; |
| 317 |
margin-bottom: 0; |
| 318 |
} |
| 319 |
|
| 320 |
/* 2 deep unordered lists use a circle */ |
| 321 |
ol ul, ul ul, menu ul, dir ul, |
| 322 |
ol menu, ul menu, menu menu, dir menu, |
| 323 |
ol dir, ul dir, menu dir, dir dir { |
| 324 |
list-style-type: circle; |
| 325 |
} |
| 326 |
|
| 327 |
/* 3 deep (or more) unordered lists use a square */ |
| 328 |
ol ol ul, ol ul ul, ol menu ul, ol dir ul, |
| 329 |
ol ol menu, ol ul menu, ol menu menu, ol dir menu, |
| 330 |
ol ol dir, ol ul dir, ol menu dir, ol dir dir, |
| 331 |
ul ol ul, ul ul ul, ul menu ul, ul dir ul, |
| 332 |
ul ol menu, ul ul menu, ul menu menu, ul dir menu, |
| 333 |
ul ol dir, ul ul dir, ul menu dir, ul dir dir, |
| 334 |
menu ol ul, menu ul ul, menu menu ul, menu dir ul, |
| 335 |
menu ol menu, menu ul menu, menu menu menu, menu dir menu, |
| 336 |
menu ol dir, menu ul dir, menu menu dir, menu dir dir, |
| 337 |
dir ol ul, dir ul ul, dir menu ul, dir dir ul, |
| 338 |
dir ol menu, dir ul menu, dir menu menu, dir dir menu, |
| 339 |
dir ol dir, dir ul dir, dir menu dir, dir dir dir { |
| 340 |
list-style-type: square; |
| 341 |
} |
| 342 |
|
| 343 |
|
| 344 |
/* leafs */ |
| 345 |
|
| 346 |
/* <hr> noshade and color attributes are handled completely by |
| 347 |
* the nsHTMLHRElement attribute mapping code |
| 348 |
*/ |
| 349 |
hr { |
| 350 |
display: block; |
| 351 |
height: 2px; |
| 352 |
border: 1px inset; |
| 353 |
margin: 0.5em auto 0.5em auto; |
| 354 |
color: gray; |
| 355 |
} |
| 356 |
|
| 357 |
hr[size="1"] { |
| 358 |
border-style: solid none none none; |
| 359 |
} |
| 360 |
|
| 361 |
img[usemap], object[usemap] { |
| 362 |
color: blue; |
| 363 |
} |
| 364 |
|
| 365 |
frameset { |
| 366 |
display: block ! important; |
| 367 |
position: static ! important; |
| 368 |
float: none ! important; |
| 369 |
border: none ! important; |
| 370 |
} |
| 371 |
|
| 372 |
frame { |
| 373 |
border: none ! important; |
| 374 |
} |
| 375 |
|
| 376 |
iframe { |
| 377 |
border: 2px inset; |
| 378 |
} |
| 379 |
|
| 380 |
noframes { |
| 381 |
display: none; |
| 382 |
} |
| 383 |
|
| 384 |
spacer { |
| 385 |
position: static ! important; |
| 386 |
float: none ! important; |
| 387 |
} |
| 388 |
|
| 389 |
/* hidden elements */ |
| 390 |
area, base, basefont, head, meta, script, style, title, |
| 391 |
noembed, param, link { |
| 392 |
display: none; |
| 393 |
} |
| 394 |
|
| 395 |
/* Explicit line-breaks are blocks, sure... */ |
| 396 |
br { |
| 397 |
display: block; |
| 398 |
} |
| 399 |
|
| 400 |
/* Images, embedded object, and SVG size defaults */ |
| 401 |
img, object, svg|svg { |
| 402 |
width: auto; |
| 403 |
height: auto; |
| 404 |
} |