home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Charamel.jar / global / checkbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-07-24  |  2.4 KB  |  104 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.  * Alex W. (Charamel) <lucx@shaw.ca>
  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-box-align: center;
  34.   margin: 2px 4px;
  35.   padding: 1px 2px 1px 4px;
  36. }
  37.  
  38. .checkbox-label-box {
  39.   margin-left: 2px;
  40.   border: 1px solid transparent;
  41.   padding: 0px 1px;
  42. }
  43.  
  44. .checkbox-icon {
  45.   margin-right: 2px;
  46. }
  47.  
  48. .checkbox-label {
  49.   margin: 0 !important;
  50. }
  51.  
  52.  
  53.  
  54. /* ::::: checkBox ::::: */
  55. /*
  56. 18x18
  57. 36x54
  58.  
  59. */
  60.  
  61.  
  62. /*unchecked state*/
  63. checkbox .checkbox-check {
  64. list-style-image: url("chrome://global/skin/checkbox/checkbox.png");
  65. -moz-image-region:rect(0px 18px 18px 0px);
  66. }
  67. /*unchecked focus*/
  68. checkbox:focus >  .checkbox-check{
  69. -moz-image-region:rect(18px 18px 36px 0px);
  70. }
  71. /*unchecked active*/
  72. checkbox:focus:active > .checkbox-check {
  73. -moz-image-region:rect(36px 18px 54px 0px);
  74. }
  75.  
  76.  
  77. /*checked state*/
  78. checkbox[checked="true"] > .checkbox-check {
  79. -moz-image-region:rect(0px 36px 18px 18px);
  80. }
  81. /*checked focus*/
  82. checkbox[checked="true"]:focus >  .checkbox-check{
  83. -moz-image-region:rect(18px 36px 36px 18px);
  84. }
  85. /*checked active*/
  86. checkbox[checked="true"]:active > .checkbox-check{
  87. -moz-image-region:rect(36px 36px 54px 18px);
  88. }
  89.  
  90.  
  91.  
  92. /* checkbox + lable dsabled */
  93. checkbox[disabled="true"] {
  94. -moz-opacity:0.4;
  95. color:#785130;
  96. }
  97.  
  98. /* checkbox disabled */
  99. checkbox[checked="true"][disabled="true"] > .checkbox-check {
  100. }
  101.  
  102.  
  103.  
  104.