first steps on synching EarlyBlue with trunk *stripe (global files starting with...
[themes.git] / EarlyBlue / global / checkbox.css
index b419653813603d0c6caaa1b59ed7356a96645a0c..230f09be207152762be37cf0ca2361c6765b476e 100644 (file)
  *
  * ***** END LICENSE BLOCK ***** */
 
+/* ===== checkbox.css ===================================================
+  == Styles used by the XUL checkbox element.
+  ======================================================================= */
+
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
-/* stylesheet for XUL <checkbox> element */
+/* ::::: checkbox ::::: */
 
-/* default checkbox for dialogs */
-/* outer frame */
 checkbox {
-  -moz-box-align: center;
   margin: 1px 2px;
-  padding: 1px;
+  border-left: 1px transparent;
+  border-right: 1px transparent;
+}
+
+.checkbox-spacer-box {
+  -moz-box-align: center;
+  border-right: 4px solid transparent;
+}
+
+.checkbox-label-center-box {
+  -moz-box-align: center;
 }
 
 .checkbox-label-box {
   border: 1px solid transparent;
-  padding: 0px 1px;
   -moz-box-align: center;
 }
 
-.checkbox-icon {
+.checkbox-icon[src] {
   margin-right: 2px;
 }
 
@@ -63,14 +73,14 @@ checkbox {
 
 /* ..... focused state ..... */
 
-checkbox:focus > .checkbox-label-box {
+checkbox:focus > .checkbox-label-center-box > .checkbox-label-box {
   border: 1px dotted #9999CC;
 }
 
 /* ..... disabled state ..... */
 
-checkbox[disabled="true"] > .checkbox-check {
-  background-color: -moz-Dialog;
+checkbox[disabled="true"] > .checkbox-spacer-box > .checkbox-check {
+  background-color: #CCD0DD;
 }
 
 checkbox[disabled="true"] {
@@ -80,23 +90,22 @@ checkbox[disabled="true"] {
 /* ::::: checkmark image ::::: */
 
 .checkbox-check {
-  -moz-box-align: center;
   border: 1px inset #CCD0DD;
   width: 12px;
   height: 12px;
   background: transparent 50% 50% no-repeat;
 }
-  
-checkbox:hover:active > .checkbox-check {
-  background-color: transparent;
+
+checkbox:hover:active > .checkbox-spacer-box > .checkbox-check {
+  background-color: #CCD0DD;
 }
 
 /* ..... checked state ..... */
 
-checkbox[checked="true"] > .checkbox-check {
+checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check {
   background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
 }
 
-checkbox[checked="true"][disabled="true"] > .checkbox-check {
+checkbox[checked="true"][disabled="true"] > .checkbox-spacer-box > .checkbox-check {
   background-image: url("chrome://global/skin/checkbox/cbox-check-disabled.gif") !important
 }