pjs/themes/modern/global/radio.css

107 строки
2.8 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");
/* ::::: radiogroup ::::: */
radiogroup {
-moz-user-focus: ignore;
}
/* ::::: radio ::::: */
radio {
border: 2px solid transparent;
margin: 0px 3px 0px 3px;
-moz-user-focus: normal !important;
}
/* ..... focused state ..... */
radio:focus {
border-color: #A5A8B1;
-moz-border-radius: 4px 5px 4px 5px;
}
/* ..... disabled state ..... */
radio[disabled="true"][label] > .internal-box > html {
color: #999999;
}
/* ..... internal box ..... */
radio > .internal-box {
-moz-user-focus: ignore;
}
radio > .internal-box > .checkmark-box {
margin: 3px;
}
/* ::::: radio icon and label ::::: */
radio[label] > .internal-box > html,
radio.iconic > .internal-box > .icon {
margin: 0px 0px 0px 0px;
padding: 2px 2px 2px 0px;
}
radio.iconic > .internal-box > html {
margin-left: 2px;
}
/* ::::: checkmark image ::::: */
radio > .internal-box > .checkmark-box > image {
list-style-image: url("chrome://global/skin/radio/radio.gif");
}
radio:hover:active > .internal-box > .checkmark-box > image {
list-style-image: url("chrome://global/skin/radio/radio-act.gif");
}
radio[disabled="true"] > .internal-box > checkmark-box > image {
list-style-image: url("chrome://global/skin/radio/radio-dis.gif");
}
/* ..... checked state ..... */
radio[checked="true"] > .internal-box > .checkmark-box > image {
list-style-image: url("chrome://global/skin/radio/radio-check.gif");
}
radio[checked="true"][disabled="true"] > .internal-box > .checkmark-box > image {
list-style-image: url("chrome://global/skin/radio/radio-dis-check.gif.gif");
}
radio[checked="true"]:hover:active > .internal-box > .checkmark-box > image {
list-style-image: url("chrome://global/skin/radio/radio-act-check.gif");
}