toolkit/themes/windows/global/radio.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 /* ===== radio.css ===================================================
michael@0 6 == Styles used by the XUL radio 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 /* ::::: radio ::::: */
michael@0 12
michael@0 13 radio {
michael@0 14 -moz-appearance: radio-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 .radio-label-box {
michael@0 24 -moz-margin-start: 2px;
michael@0 25 border: 1px solid transparent;
michael@0 26 padding-top: 0px;
michael@0 27 padding-bottom: 1px;
michael@0 28 -moz-padding-start: 1px;
michael@0 29 -moz-padding-end: 0px;
michael@0 30 }
michael@0 31
michael@0 32 .radio-icon {
michael@0 33 -moz-margin-end: 2px;
michael@0 34 }
michael@0 35
michael@0 36 .radio-label {
michael@0 37 margin: 0 !important;
michael@0 38 }
michael@0 39
michael@0 40 /* ..... focused state ..... */
michael@0 41
michael@0 42 radio[focused="true"] > .radio-label-box {
michael@0 43 border: 1px dotted ThreeDDarkShadow;
michael@0 44 }
michael@0 45
michael@0 46 /* ..... disabled state ..... */
michael@0 47
michael@0 48 radio[disabled="true"] > .radio-check-box1 {
michael@0 49 background-color: -moz-Dialog;
michael@0 50 }
michael@0 51
michael@0 52 radio[disabled="true"] {
michael@0 53 color: GrayText;
michael@0 54 }
michael@0 55
michael@0 56 radio[disabled="true"]:-moz-system-metric(windows-classic) {
michael@0 57 color: ThreeDShadow;
michael@0 58 text-shadow: 1px 1px ThreeDHighlight;
michael@0 59 }
michael@0 60
michael@0 61 /* ::::: checkmark image ::::: */
michael@0 62
michael@0 63 .radio-check-box1 {
michael@0 64 -moz-appearance: radio;
michael@0 65 margin: 1px 0px;
michael@0 66 border-top: 1px solid ThreeDShadow;
michael@0 67 border-right: 1px solid ThreeDHighlight;
michael@0 68 border-bottom: 1px solid ThreeDHighlight;
michael@0 69 border-left: 1px solid ThreeDShadow;
michael@0 70 border-radius: 50%;
michael@0 71 width: 12px;
michael@0 72 height: 12px;
michael@0 73 background-color: -moz-Field;
michael@0 74 }
michael@0 75
michael@0 76 .radio-check-box2 {
michael@0 77 border-top: 1px solid ThreeDDarkShadow;
michael@0 78 border-right: 1px solid ThreeDLightShadow;
michael@0 79 border-bottom: 1px solid ThreeDLightShadow;
michael@0 80 border-left: 1px solid ThreeDDarkShadow;
michael@0 81 border-radius: 50%;
michael@0 82 padding: 2px;
michael@0 83 width: 4px;
michael@0 84 height: 4px;
michael@0 85 list-style-image: none;
michael@0 86 }
michael@0 87
michael@0 88 radio:hover:active > .radio-check-box1 {
michael@0 89 background-color: -moz-Dialog;
michael@0 90 }
michael@0 91
michael@0 92 /* ..... selected state ..... */
michael@0 93
michael@0 94 radio[selected="true"] > .radio-check-box1 > .radio-check-box2 {
michael@0 95 list-style-image: url("chrome://global/skin/radio/radio-check.gif");
michael@0 96 }
michael@0 97
michael@0 98 radio[selected="true"][disabled="true"] > .radio-check-box1 > .radio-check-box2 {
michael@0 99 list-style-image: url("chrome://global/skin/radio/radio-check-dis.gif") !important
michael@0 100 }

mercurial