mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 00:25:27 +00:00
116 lines
3.0 KiB
CSS
116 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)
|
|
*/
|
|
|
|
/* ===== 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 {
|
|
-moz-user-focus: normal !important;
|
|
margin: 0px 2px;
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
/* ..... focused state ..... */
|
|
|
|
radio:focus {
|
|
border-color: #96A7BD;
|
|
-moz-border-radius: 4px 5px 4px 5px;
|
|
}
|
|
|
|
/* ..... disabled state ..... */
|
|
|
|
radio[disabled="true"][label] > .internal-box > .checkbox-label {
|
|
color: #85959E;
|
|
}
|
|
|
|
/* ..... internal box ..... */
|
|
|
|
radio > .internal-box {
|
|
-moz-user-focus: none;
|
|
}
|
|
|
|
radio > .internal-box > .checkmark-box {
|
|
margin: 3px;
|
|
list-style-image: none;
|
|
}
|
|
|
|
/* ::::: radio icon and label ::::: */
|
|
|
|
radio > .internal-box > .checkbox-icon {
|
|
list-style-image: inherit;
|
|
}
|
|
|
|
radio[label] > .internal-box > .checkbox-label {
|
|
margin: 0px;
|
|
padding: 2px;
|
|
}
|
|
|
|
/* ::::: checkmark image ::::: */
|
|
|
|
radio > .internal-box > .checkmark-box > .checkbox-check {
|
|
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[checked="true"] > .internal-box > .checkmark-box > .checkbox-check {
|
|
list-style-image: url("chrome://global/skin/radio/radio-check.gif");
|
|
}
|
|
|
|
radio[checked="true"]:hover:active > .internal-box > .checkmark-box
|
|
> .checkbox-check
|
|
{
|
|
list-style-image: url("chrome://global/skin/radio/radio-act-check.gif");
|
|
}
|
|
|
|
radio[checked="true"][disabled="true"] > .internal-box > .checkmark-box
|
|
> .checkbox-check,
|
|
radio[checked="true"][disabled="true"]:hover:active > .internal-box > .checkmark-box
|
|
> .checkbox-check
|
|
{
|
|
list-style-image: url("chrome://global/skin/radio/radio-dis-check.gif");
|
|
}
|
|
|