home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / res / quirk.css < prev    next >
Cascading Style Sheet File  |  2001-02-14  |  4KB  |  195 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. /* Quirk: special top and bottom margins for inputs in tables */
  117.  
  118. td select[size] {
  119.   margin-top: 0px;
  120.   margin-bottom: 1px;
  121. }
  122.  
  123. td select, td select[size="1"] {
  124.   margin-top: 2px;
  125.   margin-bottom: 2px;
  126. }
  127.  
  128. td input[type="text"], input[type="password"] {
  129.   margin-top: 1px;
  130.   margin-bottom: 1px;
  131. }
  132.  
  133. td input[type="checkbox"],
  134. td input[type="radio"] {
  135.   margin-bottom: 1px;
  136. }
  137.  
  138. td textarea {
  139.   margin-top: 1px;
  140.   margin-bottom: 2px;
  141. }
  142.  
  143.  
  144. /* Quirk: HRs avoid floats (b=18754) */
  145.  
  146. hr {
  147.   display: inline;
  148.   -moz-box-sizing: border-box;
  149. }
  150.  
  151. hr:before {
  152.   white-space: pre;
  153.   content: "\A";
  154. }
  155.  
  156. hr:after {
  157.   white-space: pre;
  158.   content: "\A";
  159. }
  160.  
  161.  
  162. /* Quirk: DD not in DL has text-indent instead of margin (b=5119) */
  163.  
  164. dd {
  165.   text-indent: 40px;
  166.   margin: 0;
  167. }
  168.  
  169. dd > * {
  170.   text-indent: 0;
  171. }
  172.  
  173. dl > dd {
  174.   text-indent: inherit;
  175.   margin-left: 40px;
  176. }
  177.  
  178. dl > dd > * {
  179.   text-indent: inherit;
  180. }
  181.  
  182. dl dl {
  183.   margin: 0 0 0 40px;
  184. }
  185.  
  186. dt dl, dd dl {
  187.   margin: 0 0 0 0;
  188. }
  189.  
  190. /* Quirk: MAP acts like an inline, not a block */
  191. map {
  192.   display: inline;
  193. }
  194.