toolkit/themes/windows/global/checkbox.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/themes/windows/global/checkbox.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,86 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/* ===== checkbox.css ===================================================
     1.9 +  == Styles used by the XUL checkbox element.
    1.10 +  ======================================================================= */
    1.11 +
    1.12 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    1.13 +
    1.14 +/* ::::: checkbox ::::: */
    1.15 +
    1.16 +checkbox {
    1.17 +  -moz-appearance: checkbox-container;
    1.18 +  -moz-box-align: center;
    1.19 +  margin: 2px 4px;
    1.20 +  padding-top: 1px;
    1.21 +  padding-bottom: 1px;
    1.22 +  -moz-padding-start: 4px;
    1.23 +  -moz-padding-end: 2px;
    1.24 +}
    1.25 +
    1.26 +.checkbox-label-box {
    1.27 +  -moz-margin-start: 2px;
    1.28 +  border: 1px solid transparent;
    1.29 +  padding: 0px 1px;
    1.30 +}
    1.31 +
    1.32 +.checkbox-icon {
    1.33 +  -moz-margin-end: 2px;
    1.34 +}
    1.35 +
    1.36 +.checkbox-label {
    1.37 +  margin: 0 !important;
    1.38 +}
    1.39 +
    1.40 +/* ..... focused state ..... */
    1.41 +
    1.42 +checkbox:-moz-focusring > .checkbox-label-box {
    1.43 +  border: 1px dotted ThreeDDarkShadow;
    1.44 +}
    1.45 +
    1.46 +/* ..... disabled state ..... */
    1.47 +
    1.48 +checkbox[disabled="true"] > .checkbox-check {
    1.49 +  background-color: -moz-Dialog;
    1.50 +}
    1.51 +
    1.52 +checkbox[disabled="true"] {
    1.53 +  color: GrayText;
    1.54 +}
    1.55 +
    1.56 +checkbox[disabled="true"]:-moz-system-metric(windows-classic) {
    1.57 +  color: ThreeDShadow;
    1.58 +  text-shadow: 1px 1px ThreeDHighlight;
    1.59 +}
    1.60 +
    1.61 +/* ::::: checkmark image ::::: */
    1.62 +
    1.63 +.checkbox-check {
    1.64 +  -moz-appearance: checkbox;
    1.65 +  -moz-box-align: center;
    1.66 +  border: 2px solid;
    1.67 +  -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
    1.68 +  -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
    1.69 +  -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
    1.70 +  -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
    1.71 +  min-width: 13px;
    1.72 +  min-height: 13px;
    1.73 +  background: -moz-Field no-repeat 50% 50%;
    1.74 +}
    1.75 +  
    1.76 +checkbox:hover:active > .checkbox-check {
    1.77 +  background-color: -moz-Dialog;
    1.78 +}
    1.79 +
    1.80 +/* ..... checked state ..... */
    1.81 +
    1.82 +checkbox[checked="true"] > .checkbox-check {
    1.83 +  background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
    1.84 +}
    1.85 +
    1.86 +checkbox[checked="true"][disabled="true"] > .checkbox-check {
    1.87 +  background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important
    1.88 +}
    1.89 +

mercurial