~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/toolkit/themes/qute/global/checkbox.css

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * The contents of this file are subject to the Netscape Public
 
3
 * License Version 1.1 (the "License"); you may not use this file
 
4
 * except in compliance with the License. You may obtain a copy of
 
5
 * the License at http://www.mozilla.org/NPL/
 
6
 *
 
7
 * Software distributed under the License is distributed on an "AS
 
8
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
9
 * implied. See the License for the specific language governing
 
10
 * rights and limitations under the License.
 
11
 *
 
12
 * The Original Code is Mozilla Communicator client code, released
 
13
 * March 31, 1998.
 
14
 *
 
15
 * The Initial Developer of the Original Code is Netscape
 
16
 * Communications Corporation. Portions created by Netscape are
 
17
 * Copyright (C) 1998-1999 Netscape Communications Corporation. All
 
18
 * Rights Reserved.
 
19
 *
 
20
 * Contributor(s):
 
21
 *
 
22
 */
 
23
 
 
24
/* ===== checkbox.css ===================================================
 
25
  == Styles used by the XUL checkbox element.
 
26
  ======================================================================= */
 
27
 
 
28
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
29
 
 
30
/* ::::: checkbox ::::: */
 
31
 
 
32
checkbox {
 
33
  -moz-appearance: checkbox-container;
 
34
  -moz-box-align: center;
 
35
  margin: 2px 4px;
 
36
  padding: 1px 2px 1px 4px;
 
37
}
 
38
 
 
39
.checkbox-label-box {
 
40
  margin-left: 2px;
 
41
  border: 1px solid transparent;
 
42
  padding: 0px 1px;
 
43
}
 
44
 
 
45
.checkbox-icon {
 
46
  margin-right: 2px;
 
47
}
 
48
 
 
49
.checkbox-label {
 
50
  margin: 0 !important;
 
51
}
 
52
 
 
53
/* ..... focused state ..... */
 
54
 
 
55
checkbox:focus > .checkbox-label-box {
 
56
  border: 1px dotted ThreeDDarkShadow;
 
57
}
 
58
 
 
59
/* ..... disabled state ..... */
 
60
 
 
61
checkbox[disabled="true"] > .checkbox-check {
 
62
  background-color: -moz-Dialog;
 
63
}
 
64
 
 
65
checkbox[disabled="true"] {
 
66
  color: GrayText !important;
 
67
}
 
68
 
 
69
/* ::::: checkmark image ::::: */
 
70
 
 
71
.checkbox-check {
 
72
  -moz-appearance: checkbox;
 
73
  -moz-box-align: center;
 
74
  border: 2px solid;
 
75
  -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
 
76
  -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
 
77
  -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
 
78
  -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
 
79
  min-width: 13px;
 
80
  min-height: 13px;
 
81
  background: -moz-Field no-repeat 50% 50%;
 
82
}
 
83
 
 
84
 
 
85
checkbox:hover:active > .checkbox-check {
 
86
  background-color: -moz-Dialog;
 
87
}
 
88
 
 
89
/* ..... checked state ..... */
 
90
 
 
91
checkbox[checked="true"] > .checkbox-check {
 
92
  background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
 
93
}
 
94
 
 
95
checkbox[checked="true"][disabled="true"] > .checkbox-check {
 
96
  background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important
 
97
}
 
98