Ticket #3012: 3012.patch

File 3012.patch, 10.3 KB (added by Garry Yao, 15 years ago)
  • contents.css

     
    1515        /* Remove the background color to make it transparent */
    1616        background-color: #fff;
    1717}
     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}
     31bdo[dir] {
     32  unicode-bidi: bidi-override;
     33}
     34
     35/* blocks */
     36
     37html, div, map, dt, isindex, form {
     38  display: block;
     39}
     40
     41body {
     42  display: block;
     43  margin: 8px;
     44}
     45
     46p, dl, multicol {
     47  display: block;
     48  margin: 1em 0;
     49}
     50
     51dd {
     52  display: block;
     53  -moz-margin-start: 40px;
     54}
     55
     56blockquote {
     57  display: block;
     58  margin: 1em 40px;
     59}
     60
     61address {
     62  display: block;
     63  font-style: italic;
     64}
     65
     66center {
     67  display: block;
     68  text-align: -moz-center;
     69}
     70
     71blockquote[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
     80span[_moz_quote=true] {
     81  color: blue;
     82}
     83
     84pre[_moz_quote=true] {
     85  color: blue;
     86}
     87
     88h1 {
     89  display: block;
     90  font-size: 2em;
     91  font-weight: bold;
     92  margin: .67em 0;
     93}
     94
     95h2 {
     96  display: block;
     97  font-size: 1.5em;
     98  font-weight: bold;
     99  margin: .83em 0;
     100}
     101
     102h3 {
     103  display: block;
     104  font-size: 1.17em;
     105  font-weight: bold;
     106  margin: 1em 0;
     107}
     108
     109h4 {
     110  display: block;
     111  font-weight: bold;
     112  margin: 1.33em 0;
     113}
     114
     115h5 {
     116  display: block;
     117  font-size: 0.83em;
     118  font-weight: bold;
     119  margin: 1.67em 0;
     120}
     121
     122h6 {
     123  display: block;
     124  font-size: 0.67em;
     125  font-weight: bold;
     126  margin: 2.33em 0;
     127}
     128
     129listing {
     130  display: block;
     131  font-family: -moz-fixed;
     132  font-size: medium;
     133  white-space: pre;
     134  margin: 1em 0;
     135}
     136
     137xmp, pre, plaintext {
     138  display: block;
     139  font-family: -moz-fixed;
     140  white-space: pre;
     141  margin: 1em 0;
     142}
     143
     144/* tables */
     145
     146table {
     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
     157table[align="left"] {
     158  float: left;
     159}
     160
     161table[align="right"] {
     162  float: right;
     163  text-align: start;
     164}
     165
     166table[rules]:not([rules="none"]) {
     167  border-collapse: collapse;
     168}
     169   
     170/* caption inherits from table not table-outer */ 
     171caption {
     172  display: table-caption;
     173  text-align: center;
     174  -moz-box-sizing: border-box;
     175}
     176
     177table[align="center"] > caption {
     178  margin-left: auto;
     179  margin-right: auto;
     180}
     181
     182table[align="center"] > caption[align="left"] {
     183  margin-right: 0;
     184}
     185
     186table[align="center"] > caption[align="right"] {
     187  margin-left: 0;
     188}
     189
     190tr {
     191  display: table-row;
     192  vertical-align: inherit;
     193}
     194
     195col {
     196  display: table-column;
     197}
     198
     199colgroup {
     200  display: table-column-group;
     201}
     202
     203tbody {
     204  display: table-row-group;
     205  vertical-align: middle;
     206}
     207
     208thead {
     209  display: table-header-group;
     210  vertical-align: middle;
     211}
     212
     213tfoot {
     214  display: table-footer-group;
     215  vertical-align: middle;
     216}
     217
     218/* for XHTML tables without tbody */
     219table > tr {
     220  vertical-align: middle;
     221}
     222
     223td {
     224  display: table-cell;
     225  vertical-align: inherit;
     226  text-align: inherit;
     227  padding: 1px;
     228}
     229
     230th {
     231  display: table-cell;
     232  vertical-align: inherit;
     233  font-weight: bold;
     234  padding: 1px;
     235}
     236
     237tr > form:-moz-is-html, tbody > form:-moz-is-html,
     238thead > form:-moz-is-html, tfoot > form:-moz-is-html,
     239table > form:-moz-is-html {
     240  /* Important: don't show these forms in HTML */
     241  display: none !important;
     242}
     243
     244/* inlines */
     245
     246q:before {
     247  content: open-quote;
     248}
     249
     250q:after {
     251  content: close-quote;
     252}
     253
     254b, strong {
     255  font-weight: bolder;
     256}
     257
     258i, cite, em, var, dfn {
     259  font-style: italic;
     260}
     261
     262tt, code, kbd, samp {
     263  font-family: -moz-fixed;
     264}
     265
     266u, ins {
     267  text-decoration: underline;
     268}
     269
     270s, strike, del {
     271  text-decoration: line-through;
     272}
     273
     274blink {
     275  text-decoration: blink;
     276}
     277
     278big {
     279  font-size: larger;
     280}
     281
     282small {
     283  font-size: smaller;
     284}
     285
     286sub {
     287  vertical-align: sub;
     288  font-size: smaller;
     289  line-height: normal;
     290}
     291
     292sup {
     293  vertical-align: super;
     294  font-size: smaller;
     295  line-height: normal;
     296}
     297
     298nobr {
     299  white-space: nowrap;
     300}
     301
     302/* titles */
     303abbr[title], acronym[title] {
     304  border-bottom: dotted 1px;
     305}
     306
     307/* lists */
     308
     309ul, menu, dir {
     310  display: block;
     311  list-style-type: disc;
     312  margin: 1em 0;
     313  -moz-padding-start: 40px;
     314}
     315
     316ol {
     317  display: block;
     318  list-style-type: decimal;
     319  margin: 1em 0;
     320  -moz-padding-start: 40px;
     321}
     322
     323li {
     324  display: list-item;
     325}
     326
     327/* nested lists have no top/bottom margins */
     328ul ul,   ul ol,   ul dir,   ul menu,   ul dl,
     329ol ul,   ol ol,   ol dir,   ol menu,   ol dl,
     330dir ul,  dir ol,  dir dir,  dir menu,  dir dl,
     331menu ul, menu ol, menu dir, menu menu, menu dl,
     332dl 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 */
     338ol ul,   ul ul,   menu ul,   dir ul,
     339ol menu, ul menu, menu menu, dir menu,
     340ol dir,  ul dir,  menu dir,  dir dir {
     341  list-style-type: circle;
     342}
     343
     344/* 3 deep (or more) unordered lists use a square */
     345ol ol ul,     ol ul ul,     ol menu ul,     ol dir ul,
     346ol ol menu,   ol ul menu,   ol menu menu,   ol dir menu,
     347ol ol dir,    ol ul dir,    ol menu dir,    ol dir dir,
     348ul ol ul,     ul ul ul,     ul menu ul,     ul dir ul,
     349ul ol menu,   ul ul menu,   ul menu menu,   ul dir menu,
     350ul ol dir,    ul ul dir,    ul menu dir,    ul dir dir,
     351menu ol ul,   menu ul ul,   menu menu ul,   menu dir ul,
     352menu ol menu, menu ul menu, menu menu menu, menu dir menu,
     353menu ol dir,  menu ul dir,  menu menu dir,  menu dir dir,
     354dir ol ul,    dir ul ul,    dir menu ul,    dir dir ul,
     355dir ol menu,  dir ul menu,  dir menu menu,  dir dir menu,
     356dir 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 */
     366hr {
     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
     376hr[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
     384img:-moz-broken::before, input:-moz-broken::before,
     385img:-moz-user-disabled::before, input:-moz-user-disabled::before,
     386img:-moz-loading::before, input:-moz-loading::before,
     387applet:-moz-empty-except-children-with-localname(param):-moz-broken::before,
     388applet:-moz-empty-except-children-with-localname(param):-moz-user-disabled::before {
     389  content: -moz-alt-content !important;
     390  unicode-bidi: embed;
     391}
     392
     393object:-moz-broken > *|*, applet:-moz-broken > *|*
     394object:-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
     403img:-moz-suppressed, input:-moz-suppressed, object:-moz-suppressed,
     404embed:-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
     416img[usemap], object[usemap] {
     417  color: blue;
     418}
     419
     420frameset {
     421  display: block ! important;
     422  overflow: -moz-hidden-unscrollable;
     423  position: static ! important;
     424  float: none ! important;
     425  border: none ! important;
     426}
     427
     428frame {
     429  border: none ! important;
     430}
     431
     432iframe {
     433  border: 2px inset;
     434}
     435
     436noframes {
     437  display: none;
     438}
     439
     440spacer {
     441  position: static ! important;
     442  float: none ! important;
     443}
     444
     445canvas {
     446  -moz-user-select: none;
     447}
     448
     449/* focusable content: anything w/ tabindex >=0 is focusable */
     450abbr:focus, acronym:focus, address:focus, applet:focus, b:focus,
     451base:focus, big:focus, blockquote:focus, br:focus, canvas:focus, caption:focus,
     452center:focus, cite:focus, code:focus, col:focus, colgroup:focus, dd:focus,
     453del:focus, dfn:focus, dir:focus, div:focus, dl:focus, dt:focus, em:focus,
     454fieldset:focus, font:focus, form:focus, h1:focus, h2:focus, h3:focus, h4:focus,
     455h5:focus, h6:focus, hr:focus, i:focus, img:focus, ins:focus,
     456kbd:focus, label:focus, legend:focus, li:focus, link:focus, menu:focus,
     457object:focus, ol:focus, p:focus, pre:focus, q:focus, s:focus, samp:focus,
     458small:focus, span:focus, strike:focus, strong:focus, sub:focus, sup:focus,
     459table:focus, tbody:focus, td:focus, tfoot:focus, th:focus, thead:focus,
     460tr: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 */
     466area, base, basefont, head, meta, script, style, title,
     467noembed, param {
     468   display: none;
     469}
     470
     471/* emulation of non-standard HTML <marquee> tag */
     472marquee {
     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
     480marquee[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}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy