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

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

mercurial