toolkit/themes/windows/global/checkbox.css

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 /* ===== checkbox.css ===================================================
michael@0 6 == Styles used by the XUL checkbox element.
michael@0 7 ======================================================================= */
michael@0 8
michael@0 9 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
michael@0 10
michael@0 11 /* ::::: checkbox ::::: */
michael@0 12
michael@0 13 checkbox {
michael@0 14 -moz-appearance: checkbox-container;
michael@0 15 -moz-box-align: center;
michael@0 16 margin: 2px 4px;
michael@0 17 padding-top: 1px;
michael@0 18 padding-bottom: 1px;
michael@0 19 -moz-padding-start: 4px;
michael@0 20 -moz-padding-end: 2px;
michael@0 21 }
michael@0 22
michael@0 23 .checkbox-label-box {
michael@0 24 -moz-margin-start: 2px;
michael@0 25 border: 1px solid transparent;
michael@0 26 padding: 0px 1px;
michael@0 27 }
michael@0 28
michael@0 29 .checkbox-icon {
michael@0 30 -moz-margin-end: 2px;
michael@0 31 }
michael@0 32
michael@0 33 .checkbox-label {
michael@0 34 margin: 0 !important;
michael@0 35 }
michael@0 36
michael@0 37 /* ..... focused state ..... */
michael@0 38
michael@0 39 checkbox:-moz-focusring > .checkbox-label-box {
michael@0 40 border: 1px dotted ThreeDDarkShadow;
michael@0 41 }
michael@0 42
michael@0 43 /* ..... disabled state ..... */
michael@0 44
michael@0 45 checkbox[disabled="true"] > .checkbox-check {
michael@0 46 background-color: -moz-Dialog;
michael@0 47 }
michael@0 48
michael@0 49 checkbox[disabled="true"] {
michael@0 50 color: GrayText;
michael@0 51 }
michael@0 52
michael@0 53 checkbox[disabled="true"]:-moz-system-metric(windows-classic) {
michael@0 54 color: ThreeDShadow;
michael@0 55 text-shadow: 1px 1px ThreeDHighlight;
michael@0 56 }
michael@0 57
michael@0 58 /* ::::: checkmark image ::::: */
michael@0 59
michael@0 60 .checkbox-check {
michael@0 61 -moz-appearance: checkbox;
michael@0 62 -moz-box-align: center;
michael@0 63 border: 2px solid;
michael@0 64 -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
michael@0 65 -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
michael@0 66 -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
michael@0 67 -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
michael@0 68 min-width: 13px;
michael@0 69 min-height: 13px;
michael@0 70 background: -moz-Field no-repeat 50% 50%;
michael@0 71 }
michael@0 72
michael@0 73 checkbox:hover:active > .checkbox-check {
michael@0 74 background-color: -moz-Dialog;
michael@0 75 }
michael@0 76
michael@0 77 /* ..... checked state ..... */
michael@0 78
michael@0 79 checkbox[checked="true"] > .checkbox-check {
michael@0 80 background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
michael@0 81 }
michael@0 82
michael@0 83 checkbox[checked="true"][disabled="true"] > .checkbox-check {
michael@0 84 background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important
michael@0 85 }
michael@0 86

mercurial