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

109 lines
3.0 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-2001 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Joe Hewitt (hewitt@netscape.com)
*/
/* ===== checkbox.css ===================================================
== Styles used by the XUL checkbox element.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: checkbox ::::: */
checkbox {
margin: 0px 2px;
border: 2px solid transparent;
}
/* ..... focused state ..... */
checkbox:focus {
border-color: #96A7BD;
-moz-border-radius: 4px 5px 4px 5px;
}
/* ..... disabled state ..... */
checkbox[disabled="true"][value] > .internal-box > .checkbox-label {
color: #85959E;
}
/* ..... internal box ..... */
checkbox > .internal-box {
-moz-user-focus: none;
}
checkbox > .internal-box > .checkmark-box {
margin: 3px;
list-style-image: none;
}
/* ::::: icon and label ::::: */
checkbox > .internal-box > .checkbox-icon {
list-style-image: inherit;
}
checkbox[value] > .internal-box > .checkbox-label {
margin: 0px;
padding: 2px;
}
/* ::::: checkmark image ::::: */
checkbox > .internal-box > .checkmark-box > .checkbox-check {
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"]:hover:active > .internal-box > .checkmark-box
> .checkbox-check
{
list-style-image: url("chrome://global/skin/checkbox/cbox-act-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");
}