home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-mac-0.9.sea.hqx / mozilla-mac-0.9 / res / quirk.css < prev    next >
Cascading Style Sheet File  |  2001-05-05  |  4KB  |  208 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is mozilla.org code.
  13.  *
  14.  * The Initial Developer of the Original Code is Netscape
  15.  * Communications Corporation.  Portions created by Netscape are
  16.  * Copyright (C) 1998 Netscape Communications Corporation. All
  17.  * Rights Reserved.
  18.  *
  19.  * Contributor(s): 
  20.  */
  21.  
  22. @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
  23.  
  24. /* Quirk: input images have a blue border (b=28010) */ 
  25.  
  26. /* default border */
  27. input[type=image] {
  28.   border: 2px solid blue;
  29. }
  30.  
  31. /* border when focused -- only change style to dotted */
  32. input[type=image]:focused {
  33.   border-style: dotted;
  34. }
  35.  
  36. /* border when focused -- only change color to gray */
  37. input[type=image][disabled] {
  38.   border-color: GrayText;
  39. }
  40.  
  41.  
  42. /* Quirk: make orphaned LIs have inside bullet (b=1049) */
  43.  
  44. /* force inside position for orphaned lis */
  45. li {
  46.   list-style-position: inside; 
  47. }
  48.  
  49. /* restore outside position for lists inside LIs */
  50. li ul, li ol, li dir, li menu { 
  51.   list-style-position: outside; 
  52. }
  53.  
  54. /* undo previous two rules for properly nested lists */
  55.   ul ul,   ul ol,   ul dir,   ul menu,   ul li,
  56.   ol ul,   ol ol,   ol dir,   ol menu,   ol li,
  57.  dir ul,  dir ol,  dir dir,  dir menu,  dir li,
  58. menu ul, menu ol, menu dir, menu menu, menu li {
  59.   list-style-position: inherit;
  60. }
  61.  
  62.  
  63. /* Quirk: ensure that we get proper padding if the very first 
  64.  * node in an LI is another UL or OL. This is an ugly way to
  65.  * fix the problem, because it extends the LI up into what
  66.  * would otherwise appear to be the ULs space. (b=38832) */
  67. /* Note: this fix will fail once we implement marker box 
  68.  * alignment correctly. */
  69. li > ul:first-node,
  70. li > ol:first-node {
  71.   padding-top: 1em;
  72. }
  73.  
  74.  
  75. /* Quirk: collapse top margin of BODY and TD and bottom margin of TD */
  76.  
  77. body > :first-node, td > :first-node {
  78.   margin-top: 0;
  79. }
  80.  
  81. td > :last-node {
  82.   margin-bottom: 0;
  83. }
  84.  
  85.  
  86. /* Quirk: support the ways of making PRE have wrapping */
  87. pre[wrap], pre[cols], pre[width] {
  88.   white-space: -moz-pre-wrap;
  89. }
  90.  
  91.  
  92. /* Quirk: text input has fixed look in compat mode (b=25580) */
  93. input[type="text"] {
  94.   border: 2px inset ! important;
  95.   padding: 1px 0 0 0;
  96.  
  97.  
  98. /* Quirk: text inputs and textareas have special font (b=44656) */
  99. /* dealt with at the code level */
  100.  
  101.  
  102. /* Quirk: special margins for radio buttons */
  103. input[type="radio"] {
  104.   margin: 2px 5px 4px 3px;
  105.   vertical-align: bottom;
  106. }
  107.  
  108.  
  109. /* Quirk: special margins for check boxes */
  110. input[type="checkbox"] {
  111.   margin: 3px 4px 3px 3px;
  112.   vertical-align: bottom;
  113. }
  114.  
  115.  
  116. button, 
  117. input[type="reset"],
  118. input[type="button"],
  119. input[type="submit"] { 
  120.   vertical-align: bottom;
  121. }
  122.  
  123. /* Quirk: special top and bottom margins for inputs in tables */
  124.  
  125. td select[size] {
  126.   margin-top: 0px;
  127.   margin-bottom: 1px;
  128. }
  129.  
  130. td select, td select[size="1"] {
  131.   margin-top: 2px;
  132.   margin-bottom: 2px;
  133. }
  134.  
  135. td input[type="text"], input[type="password"] {
  136.   margin-top: 1px;
  137.   margin-bottom: 1px;
  138. }
  139.  
  140. td input[type="checkbox"],
  141. td input[type="radio"] {
  142.   margin-bottom: 1px;
  143. }
  144.  
  145. td textarea {
  146.   margin-top: 1px;
  147.   margin-bottom: 2px;
  148. }
  149.  
  150. /* Quirk: HRs avoid floats (b=18754) */
  151.  
  152. hr {
  153.   display: inline;
  154.   -moz-box-sizing: border-box;
  155. }
  156.  
  157. hr:before {
  158.   white-space: pre;
  159.   content: "\A";
  160. }
  161.  
  162. hr:after {
  163.   white-space: pre;
  164.   content: "\A";
  165. }
  166.  
  167. /* Quirk: DD not in DL has text-indent instead of margin (b=5119) */
  168.  
  169. dd {
  170.   display: inline;
  171.   margin: 0;
  172. }
  173. dd:before {
  174.   display: inline;
  175.   white-space: pre;
  176.   font-size: 1px;
  177.   line-height: 0;
  178.   content: "\A  ";
  179.   margin-right: 40px;
  180. }
  181. dl > dd:before {
  182.   white-space: normal;
  183.   font-size: inherit;
  184.   line-height: inherit;
  185.   content: "";
  186.   margin: 0;
  187. }
  188. dl > dd {
  189.   display: block;
  190.   margin-left: 40px;
  191. }
  192.  
  193. /* Quirk: MAP acts like an inline, not a block */
  194. map {
  195.   display: inline;
  196. }
  197.  
  198. /* Quirk: Make floated images have a margin  (b=58899) */
  199. img[align=left] {
  200.   margin-right: 3px;
  201. }
  202.  
  203. img[align=right] {
  204.   margin-left: 3px;
  205. }
  206.  
  207.