home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / tema / mozilla / skin / MozCurveBlue-1.4-0.99.jar / global / checkbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-12-06  |  2.5 KB  |  100 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 Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *  Brian Ryner <bryner@netscape.com>
  22.  *
  23.  */
  24.  
  25. /* ===== checkbox.css ===================================================
  26.   == Styles used by the XUL checkbox element.
  27.   ======================================================================= */
  28.  
  29. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  30.  
  31. /* ::::: checkbox ::::: */
  32.  
  33. checkbox {
  34.   -moz-appearance: checkbox-container;
  35.   -moz-box-align: center;
  36.   margin: 2px 4px;
  37.   padding: 0px 2px;
  38.   border: 1px solid transparent;
  39. }
  40.  
  41. .checkbox-label-box {
  42.   margin-left: 2px;
  43.   padding: 0px 1px;
  44. }
  45.  
  46. .checkbox-icon {
  47.   margin-right: 2px;
  48. }
  49.  
  50. .checkbox-label {
  51.   margin: 0 !important;
  52. }
  53.  
  54. /* ..... focused state ..... */
  55.  
  56. checkbox:focus {
  57.   border: 1px solid ThreeDDarkShadow;
  58. }
  59.  
  60. /* ..... disabled state ..... */
  61.  
  62. checkbox[disabled="true"] > .checkbox-check {
  63.   background-color: -moz-Dialog;
  64. }
  65.  
  66. checkbox[disabled="true"] {
  67.   color: GrayText !important;
  68. }
  69.  
  70. /* ::::: checkmark image ::::: */
  71.  
  72. .checkbox-check {
  73.   -moz-appearance: checkbox;
  74.   -moz-box-align: center;
  75.   border: 2px solid;
  76.   margin: 5px 0px 4px 0px;
  77.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  78.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  79.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  80.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  81.   min-width: 13px;
  82.   min-height: 13px;
  83.   background: -moz-Field no-repeat 50% 50%;
  84. }
  85.   
  86. checkbox:hover:active > .checkbox-check {
  87.   background-color: -moz-Dialog;
  88. }
  89.  
  90. /* ..... checked state ..... */
  91.  
  92. checkbox[checked="true"] > .checkbox-check {
  93.   background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
  94. }
  95.  
  96. checkbox[checked="true"][disabled="true"] > .checkbox-check {
  97.   background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important
  98. }
  99.  
  100.