gecko-dev/themes/modern/global/checkbox.css

108 lines
3.1 KiB
CSS

/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
*/
/* ===== checkbox.css ===================================================
== Styles used by the XUL checkbox element.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: checkbox ::::: */
checkbox {
border: 2px solid transparent;
margin: 0px 2px 0px 2px;
padding-left: 1px;
padding-right: 1px;
}
/* ..... focused state ..... */
checkbox:focus {
border-color: #98A5B2;
-moz-border-radius: 4px 5px 4px 5px;
}
/* ..... disabled state ..... */
checkbox[disabled="true"][label] > .internal-box > html,
checkbox[disabled="true"][label]:hover:active > .internal-box > html {
color: #9FA6AE;
}
/* ..... internal box ..... */
checkbox > .internal-box {
-moz-user-focus: none;
}
checkbox > .internal-box > .checkmark-box {
margin: 3px 2px 3px 3px;
}
/* ::::: icon and label ::::: */
checkbox[label] > .internal-box > .checkbox-label {
margin: 0px 0px 2px 0px;
padding: 1px;
}
checkbox > .internal-box > .checkbox-icon {
list-style-image: inherit;
}
/* ::::: checkmark image ::::: */
checkbox > .internal-box > .checkmark-box > .checkbox-check {
width: 13px;
height: 13px;
list-style-image: url("chrome://global/skin/checkbox/cbox.gif");
}
checkbox:hover:active > .internal-box > .checkmark-box > .checkbox-check {
list-style-image: url("chrome://global/skin/checkbox/cbox-act.gif");
}
checkbox[disabled="true"] > .internal-box > .checkmark-box > .checkbox-check,
checkbox[disabled="true"]:hover:active > .internal-box > .checkmark-box > .checkbox-check {
list-style-image: url("chrome://global/skin/checkbox/cbox-dis.gif");
}
/* ..... checked state ..... */
checkbox[checked="true"] > .internal-box > .checkmark-box > .checkbox-check {
list-style-image: url("chrome://global/skin/checkbox/cbox-check.gif");
}
checkbox[checked="true"][disabled="true"] > .internal-box
> .checkmark-box > .checkbox-check,
checkbox[checked="true"][disabled="true"]:hover:active > .internal-box
> .checkmark-box > .checkbox-check {
list-style-image: url("chrome://global/skin/checkbox/cbox-dis-check.gif");
}
checkbox[checked="true"]:hover:active > .internal-box > .checkmark-box > .checkbox-check {
list-style-image: url("chrome://global/skin/checkbox/cbox-act-check.gif");
}