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-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:focus > .checkbox-label-box { michael@0: border: 1px dotted gray; michael@0: } michael@0: michael@0: /* ..... disabled state ..... */ michael@0: michael@0: checkbox[disabled="true"] > .checkbox-check { michael@0: background-color: gray; 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-box-align: center; michael@0: border: 1px solid #555555; michael@0: min-width: 13px; michael@0: min-height: 13px; michael@0: background: white; michael@0: background: white 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: