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 / checkbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2002-04-09  |  3.6 KB  |  115 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. /* stylesheet for XUL <checkbox> element */
  41.  
  42. /* default checkbox for dialogs */
  43. /* outer frame */
  44.  
  45.   input[type="checkbox"]
  46.     {
  47.       border              : 1px solid transparent;
  48.       padding             : 2px !important;
  49.       margin              : 0px;
  50.       cursor              : default;
  51.     }
  52.  
  53.   .input-checkbox-checkmark-box-1
  54.     {
  55.       border-top          : 1px solid threedshadow;
  56.       border-left         : 1px solid threedshadow;
  57.       border-right        : 1px solid threedhighlight;
  58.       border-bottom       : 1px solid threedhighlight;
  59.       background-color    : window;
  60.       width               : 13px;
  61.       height              : 13px;
  62.       -moz-user-focus     : ignore;
  63.     }
  64.  
  65.   .input-checkbox-checkmark-box-1[disabled]
  66.     {
  67.       background-color    : threedface;
  68.     }
  69.  
  70.   .input-checkbox-checkmark-box-2
  71.     {
  72.       border-left         : 1px solid threeddarkshadow;
  73.       border-top          : 1px solid threeddarkshadow;
  74.       border-right        : 1px solid threedface;
  75.       border-bottom       : 1px solid threedface;
  76.       padding             : 1px;
  77.       width               : 11px;
  78.       height              : 11px;
  79.     }  
  80.  
  81.   /* ensure that no list-style-image is inherited in from the Outside */
  82.   .input-checkbox-check
  83.     {
  84.       list-style-image    : none;
  85.     }
  86.  
  87.   .input-checkbox-check[checked]
  88.     {
  89.       list-style-image    : url(chrome://global/skin/check-check.gif);
  90.     }
  91.   
  92.   .input-checkbox-check[checked][disabled]
  93.     {
  94.       list-style-image    : url(chrome://global/skin/check-check-disabled.gif);
  95.     }
  96.  
  97.   input[type="checkbox"]:hover:active > .input-checkbox-checkmark-box-1
  98.     {
  99.       background-color    : threedface;
  100.     }
  101.  
  102. /* text/icon frames */
  103.   input[type="checkbox"]:focus
  104.     { 
  105.       border              : 1px dotted threeddarkshadow;
  106.       padding             : 0px;
  107.     }
  108.     
  109.   .input-checkbox-checkmark-box-1
  110.     {
  111.       -moz-user-focus     : none; 
  112.     }
  113.  
  114.     
  115.