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: /* ===== checkbox.css =================================================== michael@0: == Styles used by the XUL checkbox element. michael@0: ======================================================================= */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: /* ::::: checkbox ::::: */ michael@0: michael@0: checkbox { michael@0: -moz-appearance: checkbox-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: .checkbox-label-box { michael@0: -moz-margin-start: 2px; michael@0: border: 1px solid transparent; michael@0: padding: 0px 1px; michael@0: } michael@0: michael@0: .checkbox-icon { michael@0: -moz-margin-end: 2px; michael@0: } michael@0: michael@0: .checkbox-label { michael@0: margin: 0 !important; michael@0: } michael@0: michael@0: /* ..... focused state ..... */ michael@0: michael@0: checkbox:-moz-focusring > .checkbox-label-box { michael@0: border: 1px dotted ThreeDDarkShadow; michael@0: } michael@0: michael@0: /* ..... disabled state ..... */ michael@0: michael@0: checkbox[disabled="true"] > .checkbox-check { michael@0: background-color: -moz-Dialog; michael@0: } michael@0: michael@0: checkbox[disabled="true"] { michael@0: color: GrayText; michael@0: } michael@0: michael@0: checkbox[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: .checkbox-check { michael@0: -moz-appearance: checkbox; michael@0: -moz-box-align: center; michael@0: border: 2px solid; michael@0: -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; michael@0: -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; michael@0: min-width: 13px; michael@0: min-height: 13px; michael@0: background: -moz-Field no-repeat 50% 50%; michael@0: } michael@0: michael@0: checkbox:hover:active > .checkbox-check { michael@0: background-color: -moz-Dialog; michael@0: } michael@0: michael@0: /* ..... checked state ..... */ michael@0: michael@0: checkbox[checked="true"] > .checkbox-check { michael@0: background-image: url("chrome://global/skin/checkbox/cbox-check.gif"); michael@0: } michael@0: michael@0: checkbox[checked="true"][disabled="true"] > .checkbox-check { michael@0: background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important michael@0: } michael@0: