| 18 | |
| 19 | /* Below reset styles from Mozilla Firefox : resource: //gre/res/html.css */ |
| 20 | |
| 21 | /* bidi */ |
| 22 | |
| 23 | [dir="rtl"] { |
| 24 | direction: rtl; |
| 25 | unicode-bidi: embed; |
| 26 | } |
| 27 | [dir="ltr"] { |
| 28 | direction: ltr; |
| 29 | unicode-bidi: embed; |
| 30 | } |
| 31 | bdo[dir] { |
| 32 | unicode-bidi: bidi-override; |
| 33 | } |
| 34 | |
| 35 | /* blocks */ |
| 36 | |
| 37 | html, div, map, dt, isindex, form { |
| 38 | display: block; |
| 39 | } |
| 40 | |
| 41 | body { |
| 42 | display: block; |
| 43 | margin: 8px; |
| 44 | } |
| 45 | |
| 46 | p, dl, multicol { |
| 47 | display: block; |
| 48 | margin: 1em 0; |
| 49 | } |
| 50 | |
| 51 | dd { |
| 52 | display: block; |
| 53 | -moz-margin-start: 40px; |
| 54 | } |
| 55 | |
| 56 | blockquote { |
| 57 | display: block; |
| 58 | margin: 1em 40px; |
| 59 | } |
| 60 | |
| 61 | address { |
| 62 | display: block; |
| 63 | font-style: italic; |
| 64 | } |
| 65 | |
| 66 | center { |
| 67 | display: block; |
| 68 | text-align: -moz-center; |
| 69 | } |
| 70 | |
| 71 | blockquote[type=cite] { |
| 72 | display: block; |
| 73 | margin: 1em 0px; |
| 74 | -moz-padding-start: 1em; |
| 75 | -moz-border-start: solid; |
| 76 | border-color: blue; |
| 77 | border-width: thin; |
| 78 | } |
| 79 | |
| 80 | span[_moz_quote=true] { |
| 81 | color: blue; |
| 82 | } |
| 83 | |
| 84 | pre[_moz_quote=true] { |
| 85 | color: blue; |
| 86 | } |
| 87 | |
| 88 | h1 { |
| 89 | display: block; |
| 90 | font-size: 2em; |
| 91 | font-weight: bold; |
| 92 | margin: .67em 0; |
| 93 | } |
| 94 | |
| 95 | h2 { |
| 96 | display: block; |
| 97 | font-size: 1.5em; |
| 98 | font-weight: bold; |
| 99 | margin: .83em 0; |
| 100 | } |
| 101 | |
| 102 | h3 { |
| 103 | display: block; |
| 104 | font-size: 1.17em; |
| 105 | font-weight: bold; |
| 106 | margin: 1em 0; |
| 107 | } |
| 108 | |
| 109 | h4 { |
| 110 | display: block; |
| 111 | font-weight: bold; |
| 112 | margin: 1.33em 0; |
| 113 | } |
| 114 | |
| 115 | h5 { |
| 116 | display: block; |
| 117 | font-size: 0.83em; |
| 118 | font-weight: bold; |
| 119 | margin: 1.67em 0; |
| 120 | } |
| 121 | |
| 122 | h6 { |
| 123 | display: block; |
| 124 | font-size: 0.67em; |
| 125 | font-weight: bold; |
| 126 | margin: 2.33em 0; |
| 127 | } |
| 128 | |
| 129 | listing { |
| 130 | display: block; |
| 131 | font-family: -moz-fixed; |
| 132 | font-size: medium; |
| 133 | white-space: pre; |
| 134 | margin: 1em 0; |
| 135 | } |
| 136 | |
| 137 | xmp, pre, plaintext { |
| 138 | display: block; |
| 139 | font-family: -moz-fixed; |
| 140 | white-space: pre; |
| 141 | margin: 1em 0; |
| 142 | } |
| 143 | |
| 144 | /* tables */ |
| 145 | |
| 146 | table { |
| 147 | display: table; |
| 148 | border-spacing: 2px; |
| 149 | border-collapse: separate; |
| 150 | margin-top: 0; |
| 151 | margin-bottom: 0; |
| 152 | /* XXXldb do we want this if we're border-collapse:collapse ? */ |
| 153 | -moz-box-sizing: border-box; |
| 154 | text-indent: 0; |
| 155 | } |
| 156 | |
| 157 | table[align="left"] { |
| 158 | float: left; |
| 159 | } |
| 160 | |
| 161 | table[align="right"] { |
| 162 | float: right; |
| 163 | text-align: start; |
| 164 | } |
| 165 | |
| 166 | table[rules]:not([rules="none"]) { |
| 167 | border-collapse: collapse; |
| 168 | } |
| 169 | |
| 170 | /* caption inherits from table not table-outer */ |
| 171 | caption { |
| 172 | display: table-caption; |
| 173 | text-align: center; |
| 174 | -moz-box-sizing: border-box; |
| 175 | } |
| 176 | |
| 177 | table[align="center"] > caption { |
| 178 | margin-left: auto; |
| 179 | margin-right: auto; |
| 180 | } |
| 181 | |
| 182 | table[align="center"] > caption[align="left"] { |
| 183 | margin-right: 0; |
| 184 | } |
| 185 | |
| 186 | table[align="center"] > caption[align="right"] { |
| 187 | margin-left: 0; |
| 188 | } |
| 189 | |
| 190 | tr { |
| 191 | display: table-row; |
| 192 | vertical-align: inherit; |
| 193 | } |
| 194 | |
| 195 | col { |
| 196 | display: table-column; |
| 197 | } |
| 198 | |
| 199 | colgroup { |
| 200 | display: table-column-group; |
| 201 | } |
| 202 | |
| 203 | tbody { |
| 204 | display: table-row-group; |
| 205 | vertical-align: middle; |
| 206 | } |
| 207 | |
| 208 | thead { |
| 209 | display: table-header-group; |
| 210 | vertical-align: middle; |
| 211 | } |
| 212 | |
| 213 | tfoot { |
| 214 | display: table-footer-group; |
| 215 | vertical-align: middle; |
| 216 | } |
| 217 | |
| 218 | /* for XHTML tables without tbody */ |
| 219 | table > tr { |
| 220 | vertical-align: middle; |
| 221 | } |
| 222 | |
| 223 | td { |
| 224 | display: table-cell; |
| 225 | vertical-align: inherit; |
| 226 | text-align: inherit; |
| 227 | padding: 1px; |
| 228 | } |
| 229 | |
| 230 | th { |
| 231 | display: table-cell; |
| 232 | vertical-align: inherit; |
| 233 | font-weight: bold; |
| 234 | padding: 1px; |
| 235 | } |
| 236 | |
| 237 | tr > form:-moz-is-html, tbody > form:-moz-is-html, |
| 238 | thead > form:-moz-is-html, tfoot > form:-moz-is-html, |
| 239 | table > form:-moz-is-html { |
| 240 | /* Important: don't show these forms in HTML */ |
| 241 | display: none !important; |
| 242 | } |
| 243 | |
| 244 | /* inlines */ |
| 245 | |
| 246 | q:before { |
| 247 | content: open-quote; |
| 248 | } |
| 249 | |
| 250 | q:after { |
| 251 | content: close-quote; |
| 252 | } |
| 253 | |
| 254 | b, strong { |
| 255 | font-weight: bolder; |
| 256 | } |
| 257 | |
| 258 | i, cite, em, var, dfn { |
| 259 | font-style: italic; |
| 260 | } |
| 261 | |
| 262 | tt, code, kbd, samp { |
| 263 | font-family: -moz-fixed; |
| 264 | } |
| 265 | |
| 266 | u, ins { |
| 267 | text-decoration: underline; |
| 268 | } |
| 269 | |
| 270 | s, strike, del { |
| 271 | text-decoration: line-through; |
| 272 | } |
| 273 | |
| 274 | blink { |
| 275 | text-decoration: blink; |
| 276 | } |
| 277 | |
| 278 | big { |
| 279 | font-size: larger; |
| 280 | } |
| 281 | |
| 282 | small { |
| 283 | font-size: smaller; |
| 284 | } |
| 285 | |
| 286 | sub { |
| 287 | vertical-align: sub; |
| 288 | font-size: smaller; |
| 289 | line-height: normal; |
| 290 | } |
| 291 | |
| 292 | sup { |
| 293 | vertical-align: super; |
| 294 | font-size: smaller; |
| 295 | line-height: normal; |
| 296 | } |
| 297 | |
| 298 | nobr { |
| 299 | white-space: nowrap; |
| 300 | } |
| 301 | |
| 302 | /* titles */ |
| 303 | abbr[title], acronym[title] { |
| 304 | border-bottom: dotted 1px; |
| 305 | } |
| 306 | |
| 307 | /* lists */ |
| 308 | |
| 309 | ul, menu, dir { |
| 310 | display: block; |
| 311 | list-style-type: disc; |
| 312 | margin: 1em 0; |
| 313 | -moz-padding-start: 40px; |
| 314 | } |
| 315 | |
| 316 | ol { |
| 317 | display: block; |
| 318 | list-style-type: decimal; |
| 319 | margin: 1em 0; |
| 320 | -moz-padding-start: 40px; |
| 321 | } |
| 322 | |
| 323 | li { |
| 324 | display: list-item; |
| 325 | } |
| 326 | |
| 327 | /* nested lists have no top/bottom margins */ |
| 328 | ul ul, ul ol, ul dir, ul menu, ul dl, |
| 329 | ol ul, ol ol, ol dir, ol menu, ol dl, |
| 330 | dir ul, dir ol, dir dir, dir menu, dir dl, |
| 331 | menu ul, menu ol, menu dir, menu menu, menu dl, |
| 332 | dl ul, dl ol, dl dir, dl menu, dl dl { |
| 333 | margin-top: 0; |
| 334 | margin-bottom: 0; |
| 335 | } |
| 336 | |
| 337 | /* 2 deep unordered lists use a circle */ |
| 338 | ol ul, ul ul, menu ul, dir ul, |
| 339 | ol menu, ul menu, menu menu, dir menu, |
| 340 | ol dir, ul dir, menu dir, dir dir { |
| 341 | list-style-type: circle; |
| 342 | } |
| 343 | |
| 344 | /* 3 deep (or more) unordered lists use a square */ |
| 345 | ol ol ul, ol ul ul, ol menu ul, ol dir ul, |
| 346 | ol ol menu, ol ul menu, ol menu menu, ol dir menu, |
| 347 | ol ol dir, ol ul dir, ol menu dir, ol dir dir, |
| 348 | ul ol ul, ul ul ul, ul menu ul, ul dir ul, |
| 349 | ul ol menu, ul ul menu, ul menu menu, ul dir menu, |
| 350 | ul ol dir, ul ul dir, ul menu dir, ul dir dir, |
| 351 | menu ol ul, menu ul ul, menu menu ul, menu dir ul, |
| 352 | menu ol menu, menu ul menu, menu menu menu, menu dir menu, |
| 353 | menu ol dir, menu ul dir, menu menu dir, menu dir dir, |
| 354 | dir ol ul, dir ul ul, dir menu ul, dir dir ul, |
| 355 | dir ol menu, dir ul menu, dir menu menu, dir dir menu, |
| 356 | dir ol dir, dir ul dir, dir menu dir, dir dir dir { |
| 357 | list-style-type: square; |
| 358 | } |
| 359 | |
| 360 | |
| 361 | /* leafs */ |
| 362 | |
| 363 | /* <hr> noshade and color attributes are handled completely by |
| 364 | * the nsHTMLHRElement attribute mapping code |
| 365 | */ |
| 366 | hr { |
| 367 | display: block; |
| 368 | height: 2px; |
| 369 | border: 1px inset; |
| 370 | margin: 0.5em auto 0.5em auto; |
| 371 | color: gray; |
| 372 | -moz-float-edge: margin-box; |
| 373 | -moz-box-sizing: border-box; |
| 374 | } |
| 375 | |
| 376 | hr[size="1"] { |
| 377 | border-style: solid none none none; |
| 378 | } |
| 379 | |
| 380 | *|*:-moz-any-link img, img[usemap], object[usemap] { |
| 381 | border: 2px solid; |
| 382 | } |
| 383 | |
| 384 | img:-moz-broken::before, input:-moz-broken::before, |
| 385 | img:-moz-user-disabled::before, input:-moz-user-disabled::before, |
| 386 | img:-moz-loading::before, input:-moz-loading::before, |
| 387 | applet:-moz-empty-except-children-with-localname(param):-moz-broken::before, |
| 388 | applet:-moz-empty-except-children-with-localname(param):-moz-user-disabled::before { |
| 389 | content: -moz-alt-content !important; |
| 390 | unicode-bidi: embed; |
| 391 | } |
| 392 | |
| 393 | object:-moz-broken > *|*, applet:-moz-broken > *|* |
| 394 | object:-moz-user-disabled > *|*, applet:-moz-user-disabled > *|* { |
| 395 | /* |
| 396 | Inherit in the object's alignment so that if we aren't aligned explicitly |
| 397 | we'll end up in the right place vertically. See bug 36997. Note that this |
| 398 | is not !important because we _might_ be aligned explicitly. |
| 399 | */ |
| 400 | vertical-align: inherit; |
| 401 | } |
| 402 | |
| 403 | img:-moz-suppressed, input:-moz-suppressed, object:-moz-suppressed, |
| 404 | embed:-moz-suppressed, applet:-moz-suppressed { |
| 405 | /* |
| 406 | Set visibility too in case the page changes display. Note that we _may_ |
| 407 | want to just set visibility and not display, in general, if we find that |
| 408 | display:none breaks too many layouts. And if we decide we really do want |
| 409 | people to be able to right-click blocked images, etc, we need to set |
| 410 | neither one, and hack the painting code.... :( |
| 411 | */ |
| 412 | display: none !important; |
| 413 | visibility: hidden !important; |
| 414 | } |
| 415 | |
| 416 | img[usemap], object[usemap] { |
| 417 | color: blue; |
| 418 | } |
| 419 | |
| 420 | frameset { |
| 421 | display: block ! important; |
| 422 | overflow: -moz-hidden-unscrollable; |
| 423 | position: static ! important; |
| 424 | float: none ! important; |
| 425 | border: none ! important; |
| 426 | } |
| 427 | |
| 428 | frame { |
| 429 | border: none ! important; |
| 430 | } |
| 431 | |
| 432 | iframe { |
| 433 | border: 2px inset; |
| 434 | } |
| 435 | |
| 436 | noframes { |
| 437 | display: none; |
| 438 | } |
| 439 | |
| 440 | spacer { |
| 441 | position: static ! important; |
| 442 | float: none ! important; |
| 443 | } |
| 444 | |
| 445 | canvas { |
| 446 | -moz-user-select: none; |
| 447 | } |
| 448 | |
| 449 | /* focusable content: anything w/ tabindex >=0 is focusable */ |
| 450 | abbr:focus, acronym:focus, address:focus, applet:focus, b:focus, |
| 451 | base:focus, big:focus, blockquote:focus, br:focus, canvas:focus, caption:focus, |
| 452 | center:focus, cite:focus, code:focus, col:focus, colgroup:focus, dd:focus, |
| 453 | del:focus, dfn:focus, dir:focus, div:focus, dl:focus, dt:focus, em:focus, |
| 454 | fieldset:focus, font:focus, form:focus, h1:focus, h2:focus, h3:focus, h4:focus, |
| 455 | h5:focus, h6:focus, hr:focus, i:focus, img:focus, ins:focus, |
| 456 | kbd:focus, label:focus, legend:focus, li:focus, link:focus, menu:focus, |
| 457 | object:focus, ol:focus, p:focus, pre:focus, q:focus, s:focus, samp:focus, |
| 458 | small:focus, span:focus, strike:focus, strong:focus, sub:focus, sup:focus, |
| 459 | table:focus, tbody:focus, td:focus, tfoot:focus, th:focus, thead:focus, |
| 460 | tr:focus, tt:focus, u:focus, ul:focus, var:focus { |
| 461 | /* Don't specify the outline-color, we should always use initial value. */ |
| 462 | outline: 1px dotted; |
| 463 | } |
| 464 | |
| 465 | /* hidden elements */ |
| 466 | area, base, basefont, head, meta, script, style, title, |
| 467 | noembed, param { |
| 468 | display: none; |
| 469 | } |
| 470 | |
| 471 | /* emulation of non-standard HTML <marquee> tag */ |
| 472 | marquee { |
| 473 | width: -moz-available; |
| 474 | display: inline-block; |
| 475 | vertical-align: text-bottom; |
| 476 | text-align: start; |
| 477 | -moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-horizontal'); |
| 478 | } |
| 479 | |
| 480 | marquee[direction="up"], marquee[direction="down"] { |
| 481 | -moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-vertical'); |
| 482 | height: 200px; |
| 483 | } |
| 484 | |
| 485 | /* PRINT ONLY rules follow */ |
| 486 | @media print { |
| 487 | |
| 488 | marquee { -moz-binding: none; } |
| 489 | |
| 490 | /* XXX this should not be necessary, we should be stopping blinking |
| 491 | of any kind in print preview, not just the <blink> element */ |
| 492 | blink { |
| 493 | text-decoration: none; |
| 494 | } |
| 495 | |
| 496 | } |