home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / modern.jar / skin / modern / global / checkbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2001-08-04  |  3.2 KB  |  107 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.   border: 2px solid transparent;
  34.   margin: 0px 2px 0px 2px;
  35.   padding-left: 1px;
  36.   padding-right: 1px;
  37. }
  38.  
  39. /* ..... focused state ..... */
  40.  
  41. checkbox:focus {
  42.   border-color: #98A5B2;
  43.   -moz-border-radius: 4px 5px 4px 5px;
  44. }
  45.  
  46. /* ..... disabled state ..... */
  47.  
  48. checkbox[disabled="true"][label] > .internal-box > html,
  49. checkbox[disabled="true"][label]:hover:active > .internal-box > html {
  50.   color: #9FA6AE;
  51. }
  52.  
  53. /* ..... internal box ..... */
  54.     
  55. checkbox > .internal-box {
  56.   -moz-user-focus: none;
  57. }   
  58.  
  59. checkbox > .internal-box > .checkmark-box {
  60.   margin: 3px 2px 3px 3px;
  61. }
  62.  
  63. /* ::::: icon and label ::::: */
  64.  
  65. checkbox[label] > .internal-box > .checkbox-label {
  66.   margin: 2px 5px !important;
  67. }
  68.  
  69. checkbox > .internal-box > .checkbox-icon {
  70.   list-style-image: inherit;
  71. }
  72.  
  73. /* ::::: checkmark image ::::: */
  74.  
  75. checkbox > .internal-box > .checkmark-box > .checkbox-check {
  76.   width: 13px;
  77.   height: 13px;
  78.   list-style-image: url("chrome://global/skin/checkbox/cbox.gif");
  79. }
  80.   
  81. checkbox:hover:active > .internal-box > .checkmark-box > .checkbox-check {
  82.   list-style-image: url("chrome://global/skin/checkbox/cbox-act.gif");  
  83. }
  84.   
  85. checkbox[disabled="true"] > .internal-box > .checkmark-box > .checkbox-check,
  86. checkbox[disabled="true"]:hover:active > .internal-box > .checkmark-box > .checkbox-check {
  87.   list-style-image: url("chrome://global/skin/checkbox/cbox-dis.gif");  
  88. }
  89.  
  90. /* ..... checked state ..... */
  91.  
  92. checkbox[checked="true"] > .internal-box > .checkmark-box > .checkbox-check {
  93.   list-style-image: url("chrome://global/skin/checkbox/cbox-check.gif");
  94. }
  95.     
  96. checkbox[checked="true"][disabled="true"] > .internal-box 
  97.     > .checkmark-box > .checkbox-check,
  98. checkbox[checked="true"][disabled="true"]:hover:active > .internal-box 
  99.     > .checkmark-box > .checkbox-check {
  100.   list-style-image: url("chrome://global/skin/checkbox/cbox-dis-check.gif");
  101. }  
  102.  
  103. checkbox[checked="true"]:hover:active > .internal-box > .checkmark-box > .checkbox-check {
  104.   list-style-image: url("chrome://global/skin/checkbox/cbox-act-check.gif");
  105. }
  106.  
  107.