1. @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
  2. /* bidi */
  3. [dir="rtl"] {
  4. direction: rtl;
  5. unicode-bidi: embed;
  6. }
  7. [dir="ltr"] {
  8. direction: ltr;
  9. unicode-bidi: embed;
  10. }
  11. bdo[dir] {
  12. unicode-bidi: bidi-override;
  13. }
  14. /* blocks */
  15. html, div, map, dt, isindex, form {
  16. display: block;
  17. }
  18. body {
  19. display: block;
  20. margin: 8px;
  21. }
  22. p, dl, multicol {
  23. display: block;
  24. margin: 1em 0;
  25. }
  26. dd {
  27. display: block;
  28. -moz-margin-start: 40px;
  29. }
  30. blockquote {
  31. display: block;
  32. margin: 1em 40px;
  33. }
  34. address {
  35. display: block;
  36. font-style: italic;
  37. }
  38. center {
  39. display: block;
  40. text-align: -moz-center;
  41. }
  42. blockquote[type=cite] {
  43. display: block;
  44. margin: 1em 0px;
  45. padding-left: 1em;
  46. border-left: solid;
  47. border-color: blue;
  48. border-width: thin;
  49. }
  50. span[_moz_quote=true] {
  51. color: blue;
  52. }
  53. pre[_moz_quote=true] {
  54. color: blue;
  55. }
  56. h1 {
  57. display: block;
  58. font-size: 2em;
  59. font-weight: bold;
  60. margin: .67em 0;
  61. }
  62. h2 {
  63. display: block;
  64. font-size: 1.5em;
  65. font-weight: bold;
  66. margin: .83em 0;
  67. }
  68. h3 {
  69. display: block;
  70. font-size: 1.17em;
  71. font-weight: bold;
  72. margin: 1em 0;
  73. }
  74. h4 {
  75. display: block;
  76. font-weight: bold;
  77. margin: 1.33em 0;
  78. }
  79. h5 {
  80. display: block;
  81. font-size: 0.83em;
  82. font-weight: bold;
  83. margin: 1.67em 0;
  84. }
  85. h6 {
  86. display: block;
  87. font-size: 0.67em;
  88. font-weight: bold;
  89. margin: 2.33em 0;
  90. }
  91. listing {
  92. display: block;
  93. font-family: -moz-fixed;
  94. font-size: medium;
  95. white-space: pre;
  96. margin: 1em 0;
  97. }
  98. xmp, pre, plaintext {
  99. display: block;
  100. font-family: -moz-fixed;
  101. white-space: pre;
  102. margin: 1em 0;
  103. }
  104. /* tables */
  105. table {
  106. display: table;
  107. border-spacing: 2px;
  108. border-collapse: separate;
  109. margin-top: 0;
  110. margin-bottom: 0;
  111. -moz-box-sizing: border-box;
  112. text-indent: 0;
  113. }
  114. table[align="left"] {
  115. float: left;
  116. }
  117. table[align="right"] {
  118. float: right;
  119. text-align: start;
  120. }
  121. table[rules]:not([rules="none"]) {
  122. border-collapse: collapse;
  123. }
  124. /* caption inherits from table not table-outer */
  125. caption {
  126. display: table-caption;
  127. text-align: center;
  128. -moz-box-sizing: border-box;
  129. }
  130. table[align="center"] > caption {
  131. margin-left: auto;
  132. margin-right: auto;
  133. }
  134. table[align="center"] > caption[align="left"] {
  135. margin-right: 0;
  136. }
  137. table[align="center"] > caption[align="right"] {
  138. margin-left: 0;
  139. }
  140. tr {
  141. display: table-row;
  142. vertical-align: inherit;
  143. }
  144. col {
  145. display: table-column;
  146. }
  147. colgroup {
  148. display: table-column-group;
  149. }
  150. tbody {
  151. display: table-row-group;
  152. vertical-align: middle;
  153. }
  154. thead {
  155. display: table-header-group;
  156. vertical-align: middle;
  157. }
  158. tfoot {
  159. display: table-footer-group;
  160. vertical-align: middle;
  161. }
  162. /* for XHTML tables without tbody */
  163. table > tr {
  164. vertical-align: middle;
  165. }
  166. td {
  167. display: table-cell;
  168. vertical-align: inherit;
  169. text-align: inherit;
  170. padding: 1px;
  171. }
  172. th {
  173. display: table-cell;
  174. vertical-align: inherit;
  175. font-weight: bold;
  176. padding: 1px;
  177. }
  178. tr > form:-moz-is-html, tbody > form:-moz-is-html,
  179. thead > form:-moz-is-html, tfoot > form:-moz-is-html,
  180. table > form:-moz-is-html {
  181. /* Important: don't show these forms in HTML */
  182. display: none !important;
  183. }
  184. /* inlines */
  185. q:before {
  186. content: open-quote;
  187. }
  188. q:after {
  189. content: close-quote;
  190. }
  191. b, strong {
  192. font-weight: bolder;
  193. }
  194. i, cite, em, var, dfn {
  195. font-style: italic;
  196. }
  197. tt, code, kbd, samp {
  198. font-family: -moz-fixed;
  199. }
  200. u, ins {
  201. text-decoration: underline;
  202. }
  203. s, strike, del {
  204. text-decoration: line-through;
  205. }
  206. blink {
  207. text-decoration: blink;
  208. }
  209. big {
  210. font-size: larger;
  211. }
  212. small {
  213. font-size: smaller;
  214. }
  215. sub {
  216. vertical-align: sub;
  217. font-size: smaller;
  218. line-height: normal;
  219. }
  220. sup {
  221. vertical-align: super;
  222. font-size: smaller;
  223. line-height: normal;
  224. }
  225. nobr {
  226. white-space: nowrap;
  227. }
  228. /* titles */
  229. abbr[title], acronym[title] {
  230. border-bottom: dotted 1px;
  231. }
  232. /* lists */
  233. ul, menu, dir {
  234. display: block;
  235. list-style-type: disc;
  236. margin: 1em 0;
  237. -moz-padding-start: 40px;
  238. }
  239. ol {
  240. display: block;
  241. list-style-type: decimal;
  242. margin: 1em 0;
  243. -moz-padding-start: 40px;
  244. }
  245. li {
  246. display: list-item;
  247. -moz-float-edge: margin-box;
  248. }
  249. /* nested lists have no top/bottom margins */
  250. ul ul, ul ol, ul dir, ul menu, ul dl,
  251. ol ul, ol ol, ol dir, ol menu, ol dl,
  252. dir ul, dir ol, dir dir, dir menu, dir dl,
  253. menu ul, menu ol, menu dir, menu menu, menu dl,
  254. dl ul, dl ol, dl dir, dl menu, dl dl {
  255. margin-top: 0;
  256. margin-bottom: 0;
  257. }
  258. /* 2 deep unordered lists use a circle */
  259. ol ul, ul ul, menu ul, dir ul,
  260. ol menu, ul menu, menu menu, dir menu,
  261. ol dir, ul dir, menu dir, dir dir {
  262. list-style-type: circle;
  263. }
  264. /* 3 deep (or more) unordered lists use a square */
  265. ol ol ul, ol ul ul, ol menu ul, ol dir ul,
  266. ol ol menu, ol ul menu, ol menu menu, ol dir menu,
  267. ol ol dir, ol ul dir, ol menu dir, ol dir dir,
  268. ul ol ul, ul ul ul, ul menu ul, ul dir ul,
  269. ul ol menu, ul ul menu, ul menu menu, ul dir menu,
  270. ul ol dir, ul ul dir, ul menu dir, ul dir dir,
  271. menu ol ul, menu ul ul, menu menu ul, menu dir ul,
  272. menu ol menu, menu ul menu, menu menu menu, menu dir menu,
  273. menu ol dir, menu ul dir, menu menu dir, menu dir dir,
  274. dir ol ul, dir ul ul, dir menu ul, dir dir ul,
  275. dir ol menu, dir ul menu, dir menu menu, dir dir menu,
  276. dir ol dir, dir ul dir, dir menu dir, dir dir dir {
  277. list-style-type: square;
  278. }
  279. /* leafs */
  280. /*
    noshade and color attributes are handled completely by
  281. * the nsHTMLHRElement attribute mapping code
  282. */
  283. hr {
  284. display: block;
  285. height: 2px;
  286. border: 1px -moz-bg-inset;
  287. margin: 0.5em auto 0.5em auto;
  288. -moz-float-edge: margin-box;
  289. -moz-box-sizing: border-box;
  290. }
  291. hr[size="1"] {
  292. border-style: -moz-bg-solid none none none;
  293. }
  294. *|*:-moz-any-link img, img[usemap], object[usemap] {
  295. border: 2px solid;
  296. }
  297. img[usemap], object[usemap] {
  298. cursor: pointer;
  299. color: blue;
  300. }
  301. frameset {
  302. display: block ! important;
  303. overflow: -moz-hidden-unscrollable;
  304. position: static ! important;
  305. float: none ! important;
  306. border: none ! important;
  307. }
  308. frame {
  309. border: none ! important;
  310. }
  311. iframe {
  312. border: 2px inset;
  313. }
  314. noframes {
  315. display: none;
  316. }
  317. spacer {
  318. position: static ! important;
  319. float: none ! important;
  320. }
  321. canvas {
  322. -moz-user-select: none;
  323. }
  324. /* focusable content: anything w/ tabindex >=0 is focusable */
  325. abbr:focus, acronym:focus, address:focus, applet:focus, b:focus,
  326. base:focus, big:focus, blockquote:focus, br:focus, canvas:focus, caption:focus,
  327. center:focus, cite:focus, code:focus, col:focus, colgroup:focus, dd:focus,
  328. del:focus, dfn:focus, dir:focus, div:focus, dl:focus, dt:focus, em:focus,
  329. fieldset:focus, font:focus, form:focus, h1:focus, h2:focus, h3:focus, h4:focus,
  330. h5:focus, h6:focus, hr:focus, i:focus, img:focus, ins:focus,
  331. kbd:focus, label:focus, legend:focus, li:focus, link:focus, menu:focus,
  332. object:focus, ol:focus, p:focus, pre:focus, q:focus, s:focus, samp:focus,
  333. small:focus, span:focus, strike:focus, strong:focus, sub:focus, sup:focus,
  334. table:focus, tbody:focus, td:focus, tfoot:focus, th:focus, thead:focus,
  335. tr:focus, tt:focus, u:focus, ul:focus, var:focus {
  336. outline: 1px dotted invert;
  337. }
  338. /* hidden elements */
  339. area, base, basefont, head, meta, script, style, title,
  340. noembed, param {
  341. display: none;
  342. }
  343. /* emulation of non-standard HTML marquee tag */
  344. marquee {
  345. display: block;
  346. -moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-horizontal');
  347. }
  348. marquee[direction="up"], marquee[direction="down"] {
  349. -moz-binding: url('chrome://xbl-marquee/content/xbl-marquee.xml#marquee-vertical');
  350. height: 200px;
  351. }
  352. /* PRINT ONLY rules follow */
  353. @media print {
  354. marquee { -moz-binding: none; }
  355. /* XXX this should not be necessary, we should be stopping blinking
  356. of any kind in print preview, not just the blink element */
  357. blink {
  358. text-decoration: none;
  359. }
  360. }