home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / 01_03.iso / software / ghostzilla_hit / files / ghostzilla-1.0-plus-install.exe / res / builtin / buttons.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2002-04-30  |  6.7 KB  |  175 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: NPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Netscape Public License
  5.  * Version 1.1 (the "License"); you may not use this file except in
  6.  * compliance with the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/NPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is mozilla.org code.
  15.  *
  16.  * The Initial Developer of the Original Code is 
  17.  * Netscape Communications Corporation.
  18.  * Portions created by the Initial Developer are Copyright (C) 1998
  19.  * the Initial Developer. All Rights Reserved.
  20.  *
  21.  * Contributor(s):
  22.  *
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the NPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the NPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
  39.  
  40. button, input[type="button"], input[type="submit"], input[type="reset"]
  41.     {
  42.       border-left         : 1px solid threedface;
  43.       border-top          : 1px solid threedface;
  44.       border-right        : 1px solid threeddarkshadow;
  45.       border-bottom       : 1px solid threeddarkshadow;
  46.       background-color    : threedface;
  47.       margin              : 0px;
  48.       font                : -moz-button;
  49.       color               : buttontext;
  50.       -moz-user-focus     : normal;
  51.       -moz-user-select    : none;
  52.     }
  53.   
  54. .button-box-1  
  55.     {
  56.       border-left         : 1px solid threedhighlight;
  57.       border-top          : 1px solid threedhighlight;
  58.       border-right        : 1px solid threedshadow;
  59.       border-bottom       : 1px solid threedshadow;
  60.       -moz-user-focus     : none;
  61.     }
  62.  
  63. .button-box-2
  64.     {
  65.             border              : 1px solid threedface;    
  66.     }
  67.     
  68. button:hover:active,
  69. input[type="button"]:hover:active,
  70. input[type="submit"]:hover:active,
  71. input[type="reset"]:hover:active
  72.     {
  73.       border              : 1px solid threeddarkshadow;
  74.     }
  75.  
  76. button:hover:active > .button-box-1,
  77. input[type="button"]:hover:active > .button-box-1,
  78. input[type="submit"]:hover:active > .button-box-1,
  79. input[type="reset"]:hover:active > .button-box-1
  80.     {
  81.       border              : 1px solid threedshadow;
  82.     }
  83.  
  84. button:hover:active > .button-box-1 > .button-box-2,
  85. input[type="button"]:hover:active > .button-box-1 > .button-box-2,
  86. input[type="submit"]:hover:active > .button-box-1 > .button-box-2,
  87. input[type="reset"]:hover:active > .button-box-1 > .button-box-2
  88.     {
  89.       border              : 1px solid threedface;
  90.     }
  91.  
  92. button:hover:active > .button-box-1 > .button-box-2 > .button-box-text,
  93. input[type="button"]:hover:active > .button-box-1 > .button-box-2 > .button-box-text,
  94. input[type="submit"]:hover:active > .button-box-1 > .button-box-2 > .button-box-text,
  95. input[type="reset"]:hover:active > .button-box-1 > .button-box-2 > .button-box-text
  96.     {
  97.       padding             : 1px 2px 0px 3px; 
  98.     }
  99.   
  100. button[disabled],
  101. button[disabled]:hover:active,
  102. input[type="button"][disabled],
  103. input[type="button"][disabled]:hover:active,
  104. input[type="submit"][disabled],
  105. input[type="submit"][disabled]:hover:active,
  106. input[type="reset"][disabled],
  107. input[type="reset"][disabled]:hover:active  
  108.     {
  109.       color               : graytext;
  110.     }
  111.         
  112. button[disabled] > .button-box-1 > .button-box-2 > .button-box-text,
  113. button[disabled]:hover:active > .button-box-1 > .button-box-2 > .button-box-text,
  114. input[type="button"][disabled] > .button-box-1 > .button-box-2 > .button-box-text,
  115. input[type="button"][disabled]:hover:active > .button-box-1 > .button-box-2 > .button-box-text,
  116. input[type="submit"][disabled] > .button-box-1 > .button-box-2 > .button-box-text,
  117. input[type="submit"][disabled]:hover:active > .button-box-1 > .button-box-2 > .button-box-text,
  118. input[type="reset"][disabled] > .button-box-1 > .button-box-2 > .button-box-text,
  119. input[type="reset"][disabled]:hover:active > .button-box-1 > .button-box-2 > .button-box-text
  120.     {
  121.       padding             : 0px 3px 1px 2px;
  122.     }
  123.  
  124. button:focus,
  125. input[type="button"]:focus,
  126. input[type="submit"]:focus,
  127. input[type="reset"]:focus
  128.     {
  129.       border              : 1px solid threeddarkshadow;
  130.     }
  131.  
  132. .button-box-text,
  133. button[disabled]:focus > .button-box-1 > .button-box-2 > .button-box-text,
  134. input[type="button"][disabled]:focus > .button-box-1 > .button-box-2 > .button-box-text,
  135. input[type="submit"][disabled]:focus > .button-box-1 > .button-box-2 > .button-box-text,
  136. input[type="reset"][disabled]:focus > .button-box-1 > .button-box-2 > .button-box-text
  137.     {
  138.       text-align          : center;
  139.       vertical-align      : middle;
  140.       padding             : 0px 3px 1px 2px;
  141.       border              : 1px solid transparent;
  142.       margin              : 1px;
  143.     }
  144.  
  145. button:focus > .button-box-1 > .button-box-2 > .button-box-text,
  146. input[type="button"]:focus > .button-box-1 > .button-box-2 > .button-box-text,
  147. input[type="submit"]:focus > .button-box-1 > .button-box-2 > .button-box-text,
  148. input[type="reset"]:focus > .button-box-1 > .button-box-2 > .button-box-text
  149.     {
  150.       border              : 1px dotted threeddarkshadow;
  151.     }    
  152.  
  153. /* outer frame */  
  154. button:focus > .button-box-1,
  155. input[type="button"]:focus > .button-box-1,
  156. input[type="submit"]:focus > .button-box-1,
  157. input[type="reset"]:focus > .button-box-1
  158.     {
  159.       border-left         : 1px solid threedhighlight;
  160.       border-top          : 1px solid threedhighlight;
  161.       border-right        : 1px solid threeddarkshadow;
  162.       border-bottom       : 1px solid threeddarkshadow;
  163.     }
  164.  
  165. button:focus > .button-box-1 > .button-box-2,
  166. input[type="button"]:focus > .button-box-1 > .button-box-2,
  167. input[type="submit"]:focus > .button-box-1 > .button-box-2,
  168. input[type="reset"]:focus > .button-box-1 > .button-box-2
  169.     {
  170.       border-left         : 1px solid threedface;
  171.       border-top          : 1px solid threedface;
  172.       border-right        : 1px solid threedshadow;
  173.       border-bottom       : 1px solid threedshadow;
  174.     }  
  175.