toolkit/themes/faststripe/global/checkbox.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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-box-align: center;
michael@0 15 margin: 2px 4px;
michael@0 16 padding-top: 1px;
michael@0 17 padding-bottom: 1px;
michael@0 18 -moz-padding-start: 4px;
michael@0 19 -moz-padding-end: 2px;
michael@0 20 }
michael@0 21
michael@0 22 .checkbox-label-box {
michael@0 23 -moz-margin-start: 2px;
michael@0 24 border: 1px solid transparent;
michael@0 25 padding: 0px 1px;
michael@0 26 }
michael@0 27
michael@0 28 .checkbox-icon {
michael@0 29 -moz-margin-end: 2px;
michael@0 30 }
michael@0 31
michael@0 32 .checkbox-label {
michael@0 33 margin: 0 !important;
michael@0 34 }
michael@0 35
michael@0 36 /* ..... focused state ..... */
michael@0 37
michael@0 38 checkbox:focus > .checkbox-label-box {
michael@0 39 border: 1px dotted gray;
michael@0 40 }
michael@0 41
michael@0 42 /* ..... disabled state ..... */
michael@0 43
michael@0 44 checkbox[disabled="true"] > .checkbox-check {
michael@0 45 background-color: gray;
michael@0 46 }
michael@0 47
michael@0 48 checkbox[disabled="true"] {
michael@0 49 color: GrayText;
michael@0 50 }
michael@0 51
michael@0 52 checkbox[disabled="true"]:-moz-system-metric(windows-classic) {
michael@0 53 color: ThreeDShadow;
michael@0 54 text-shadow: 1px 1px ThreeDHighlight;
michael@0 55 }
michael@0 56
michael@0 57 /* ::::: checkmark image ::::: */
michael@0 58
michael@0 59 .checkbox-check {
michael@0 60 -moz-box-align: center;
michael@0 61 border: 1px solid #555555;
michael@0 62 min-width: 13px;
michael@0 63 min-height: 13px;
michael@0 64 background: white;
michael@0 65 background: white no-repeat 50% 50%;
michael@0 66 }
michael@0 67
michael@0 68 checkbox:hover:active > .checkbox-check {
michael@0 69 background-color: -moz-Dialog;
michael@0 70 }
michael@0 71
michael@0 72 /* ..... checked state ..... */
michael@0 73
michael@0 74 checkbox[checked="true"] > .checkbox-check {
michael@0 75 background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
michael@0 76 }
michael@0 77
michael@0 78 checkbox[checked="true"][disabled="true"] > .checkbox-check {
michael@0 79 background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important;
michael@0 80 }
michael@0 81

mercurial