home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 March / PCWorld_2005-03_cd.bin / komunikace / kmeleon / kmeleon09.exe / classic.jar / skin / classic / global / checkbox.css < prev    next >
Cascading Style Sheet File  |  2002-02-13  |  3KB  |  98 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.  *
  22.  */
  23.  
  24. /* ===== checkbox.css ===================================================
  25.   == Styles used by the XUL checkbox element.
  26.   ======================================================================= */
  27.  
  28. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  29.  
  30. /* ::::: checkbox ::::: */
  31.  
  32. checkbox {
  33.   -moz-appearance: checkbox-container;
  34.   -moz-box-align: center;
  35.   margin: 2px 4px;
  36.   padding: 1px 2px 1px 4px;
  37. }
  38.  
  39. .checkbox-label-box {
  40.   margin-left: 2px;
  41.   border: 1px solid transparent;
  42.   padding: 0px 1px;
  43. }
  44.  
  45. .checkbox-icon {
  46.   margin-right: 2px;
  47. }
  48.  
  49. .checkbox-label {
  50.   margin: 0 !important;
  51. }
  52.  
  53. /* ..... focused state ..... */
  54.  
  55. checkbox:focus > .checkbox-label-box {
  56.   border: 1px dotted ThreeDDarkShadow;
  57. }
  58.  
  59. /* ..... disabled state ..... */
  60.  
  61. checkbox[disabled="true"] > .checkbox-check {
  62.   background-color: -moz-Dialog;
  63. }
  64.  
  65. checkbox[disabled="true"] {
  66.   color: GrayText !important;
  67. }
  68.  
  69. /* ::::: checkmark image ::::: */
  70.  
  71. .checkbox-check {
  72.   -moz-appearance: checkbox;
  73.   -moz-box-align: center;
  74.   border: 2px solid;
  75.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  76.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  77.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  78.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  79.   min-width: 13px;
  80.   min-height: 13px;
  81.   background: -moz-Field no-repeat 50% 50%;
  82. }
  83.   
  84. checkbox:hover:active > .checkbox-check {
  85.   background-color: -moz-Dialog;
  86. }
  87.  
  88. /* ..... checked state ..... */
  89.  
  90. checkbox[checked="true"] > .checkbox-check {
  91.   background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
  92. }
  93.  
  94. checkbox[checked="true"][disabled="true"] > .checkbox-check {
  95.   background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important
  96. }
  97.  
  98.