michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* ===== radio.css =================================================== michael@0: == Styles used by the XUL radio element. michael@0: ======================================================================= */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: /* ::::: radio ::::: */ michael@0: michael@0: radio { michael@0: -moz-appearance: radio-container; michael@0: -moz-box-align: center; michael@0: margin: 2px 4px; michael@0: padding-top: 1px; michael@0: padding-bottom: 1px; michael@0: -moz-padding-start: 4px; michael@0: -moz-padding-end: 2px; michael@0: } michael@0: michael@0: .radio-label-box { michael@0: -moz-margin-start: 2px; michael@0: border: 1px solid transparent; michael@0: padding-top: 0px; michael@0: padding-bottom: 1px; michael@0: -moz-padding-start: 1px; michael@0: -moz-padding-end: 0px; michael@0: } michael@0: michael@0: .radio-icon { michael@0: -moz-margin-end: 2px; michael@0: } michael@0: michael@0: .radio-label { michael@0: margin: 0 !important; michael@0: } michael@0: michael@0: /* ..... focused state ..... */ michael@0: michael@0: radio[focused="true"] > .radio-label-box { michael@0: border: 1px dotted ThreeDDarkShadow; michael@0: } michael@0: michael@0: /* ..... disabled state ..... */ michael@0: michael@0: radio[disabled="true"] > .radio-check-box1 { michael@0: background-color: -moz-Dialog; michael@0: } michael@0: michael@0: radio[disabled="true"] { michael@0: color: GrayText; michael@0: } michael@0: michael@0: radio[disabled="true"]:-moz-system-metric(windows-classic) { michael@0: color: ThreeDShadow; michael@0: text-shadow: 1px 1px ThreeDHighlight; michael@0: } michael@0: michael@0: /* ::::: checkmark image ::::: */ michael@0: michael@0: .radio-check-box1 { michael@0: -moz-appearance: radio; michael@0: margin: 1px 0px; michael@0: border-top: 1px solid ThreeDShadow; michael@0: border-right: 1px solid ThreeDHighlight; michael@0: border-bottom: 1px solid ThreeDHighlight; michael@0: border-left: 1px solid ThreeDShadow; michael@0: border-radius: 50%; michael@0: width: 12px; michael@0: height: 12px; michael@0: background-color: -moz-Field; michael@0: } michael@0: michael@0: .radio-check-box2 { michael@0: border-top: 1px solid ThreeDDarkShadow; michael@0: border-right: 1px solid ThreeDLightShadow; michael@0: border-bottom: 1px solid ThreeDLightShadow; michael@0: border-left: 1px solid ThreeDDarkShadow; michael@0: border-radius: 50%; michael@0: padding: 2px; michael@0: width: 4px; michael@0: height: 4px; michael@0: list-style-image: none; michael@0: } michael@0: michael@0: radio:hover:active > .radio-check-box1 { michael@0: background-color: -moz-Dialog; michael@0: } michael@0: michael@0: /* ..... selected state ..... */ michael@0: michael@0: radio[selected="true"] > .radio-check-box1 > .radio-check-box2 { michael@0: list-style-image: url("chrome://global/skin/radio/radio-check.gif"); michael@0: } michael@0: michael@0: radio[selected="true"][disabled="true"] > .radio-check-box1 > .radio-check-box2 { michael@0: list-style-image: url("chrome://global/skin/radio/radio-check-dis.gif") !important michael@0: }