toolkit/themes/faststripe/global/checkbox.css

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/themes/faststripe/global/checkbox.css	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,81 @@
     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-box-align: center;
    1.18 +  margin: 2px 4px;
    1.19 +  padding-top: 1px;
    1.20 +  padding-bottom: 1px;
    1.21 +  -moz-padding-start: 4px;
    1.22 +  -moz-padding-end: 2px;
    1.23 +}
    1.24 +
    1.25 +.checkbox-label-box {
    1.26 +  -moz-margin-start: 2px;
    1.27 +  border: 1px solid transparent;
    1.28 +  padding: 0px 1px;
    1.29 +}
    1.30 +
    1.31 +.checkbox-icon {
    1.32 +  -moz-margin-end: 2px;
    1.33 +}
    1.34 +
    1.35 +.checkbox-label {
    1.36 +  margin: 0 !important;
    1.37 +}
    1.38 +
    1.39 +/* ..... focused state ..... */
    1.40 +
    1.41 +checkbox:focus > .checkbox-label-box {
    1.42 +  border: 1px dotted gray;
    1.43 +}
    1.44 +
    1.45 +/* ..... disabled state ..... */
    1.46 +
    1.47 +checkbox[disabled="true"] > .checkbox-check {
    1.48 +  background-color: gray;
    1.49 +}
    1.50 +
    1.51 +checkbox[disabled="true"] {
    1.52 +  color: GrayText;
    1.53 +}
    1.54 +
    1.55 +checkbox[disabled="true"]:-moz-system-metric(windows-classic) {
    1.56 +  color: ThreeDShadow;
    1.57 +  text-shadow: 1px 1px ThreeDHighlight;
    1.58 +}
    1.59 +
    1.60 +/* ::::: checkmark image ::::: */
    1.61 +
    1.62 +.checkbox-check {
    1.63 +  -moz-box-align: center;
    1.64 +  border: 1px solid #555555;
    1.65 +  min-width: 13px;
    1.66 +  min-height: 13px;
    1.67 +  background: white;
    1.68 +  background: white no-repeat 50% 50%;
    1.69 +}
    1.70 +  
    1.71 +checkbox:hover:active > .checkbox-check {
    1.72 +  background-color: -moz-Dialog;
    1.73 +}
    1.74 +
    1.75 +/* ..... checked state ..... */
    1.76 +
    1.77 +checkbox[checked="true"] > .checkbox-check {
    1.78 +  background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
    1.79 +}
    1.80 +
    1.81 +checkbox[checked="true"][disabled="true"] > .checkbox-check {
    1.82 +  background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important;
    1.83 +}
    1.84 +

mercurial