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

103 строки
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-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
*/
/* ===== radio.css ======================================================
== Styles used by the XUL radio element.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* ::::: radio ::::: */
radio {
border: 2px solid transparent;
margin: 0px 3px 0px 3px;
}
/* ..... focused state ..... */
radio[focused="true"] {
border-color: #98A5B2;
-moz-border-radius: 4px 5px 4px 5px;
}
/* ..... disabled state ..... */
radio[disabled="true"][label] > .internal-box > .checkbox-label {
color: #9FA6AE;
}
/* ..... internal box ..... */
radio > .internal-box {
-moz-user-focus: ignore;
}
radio > .internal-box > .checkmark-box {
margin: 1px 2px 1px 3px;
}
/* ::::: radio icon and label ::::: */
radio[label] > .internal-box > .checkbox-label,
radio.iconic > .internal-box > .icon {
margin: 2px 5px !important;
}
radio.iconic > .internal-box > .checkbox-label {
margin-left: 2px;
}
/* ::::: checkmark image ::::: */
radio > .internal-box > .checkmark-box > .checkbox-check {
width: 13px;
height: 13px;
list-style-image: url("chrome://global/skin/radio/radio.gif");
}
radio:hover:active > .internal-box > .checkmark-box > .checkbox-check {
list-style-image: url("chrome://global/skin/radio/radio-act.gif");
}
radio[disabled="true"] > .internal-box > .checkmark-box > .checkbox-check,
radio[disabled="true"]:hover:active > .internal-box > .checkmark-box > .checkbox-check {
list-style-image: url("chrome://global/skin/radio/radio-dis.gif");
}
/* ..... checked state ..... */
radio[selected="true"] > .internal-box > .checkmark-box > .checkbox-check {
list-style-image: url("chrome://global/skin/radio/radio-check.gif");
}
radio[selected="true"][disabled="true"] > .internal-box > .checkmark-box > .checkbox-check,
radio[selected="true"][disabled="true"]:hover:active > .internal-box > .checkmark-box > .checkbox-checked {
list-style-image: url("chrome://global/skin/radio/radio-dis-check.gif");
}
radio[selected="true"]:hover:active > .internal-box > .checkmark-box > .checkbox-check {
list-style-image: url("chrome://global/skin/radio/radio-act-check.gif");
}