1 | /* TriStateCheckBox |
---|
2 | * |
---|
3 | * Styling TriStateCheckBox mainly includes: |
---|
4 | * |
---|
5 | * 1. Containers |
---|
6 | * .dojoxTriStateCheckBox|.dojoxTriStateCheckBoxIcon - for border, padding, width|height and background image |
---|
7 | * |
---|
8 | * 2. Checked state |
---|
9 | * .dojoxTriStateCheckBoxChecked - for checked background-color|image |
---|
10 | * .dojoxTriStateCheckBoxMixed - for mixed background-color|image |
---|
11 | * |
---|
12 | * 3. Hover state |
---|
13 | * .dojoxTriStateCheckBoxHover|.dojoxTriStateCheckBoxCheckedHover|.dojoxTriStateCheckBoxMixedHover - for background image |
---|
14 | * |
---|
15 | * 4. Disabled state |
---|
16 | * .dojoxTriStateCheckBoxDisabled|.dojoxTriStateCheckBoxCheckedDisabled|.dojoxTriStateCheckBoxMixedDisabled - for background image |
---|
17 | */ |
---|
18 | .claro .dojoxTriStateCheckBox, .claro .dojoxTriStateCheckBoxIcon { |
---|
19 | background-image: url('images/tristatecheckboxStates.png'); |
---|
20 | /* checkbox sprite image */ |
---|
21 | |
---|
22 | background-repeat: no-repeat; |
---|
23 | width: 15px; |
---|
24 | height: 16px; |
---|
25 | margin: 0 2px 0 0; |
---|
26 | padding: 0; |
---|
27 | } |
---|
28 | .dj_ie6 .claro .dojoxTriStateCheckBox, .dj_ie6 .claro .dojoxTriStateCheckBoxIcon { |
---|
29 | background-image: url('images/tristatecheckboxStates.png'); |
---|
30 | /* checkbox sprite image */ |
---|
31 | |
---|
32 | } |
---|
33 | .claro .dojoxTriStateCheckBox{ |
---|
34 | /* unchecked */ |
---|
35 | |
---|
36 | background-position: -15px; |
---|
37 | } |
---|
38 | .claro .dojoxTriStateCheckBoxChecked{ |
---|
39 | /* checked */ |
---|
40 | |
---|
41 | background-position: 0px; |
---|
42 | } |
---|
43 | .claro .dojoxTriStateCheckBoxMixed { |
---|
44 | /* mixed */ |
---|
45 | |
---|
46 | background-position: -30px; |
---|
47 | } |
---|
48 | .claro .dojoxTriStateCheckBoxDisabled { |
---|
49 | /* disabled and unchecked */ |
---|
50 | |
---|
51 | background-position: -105px; |
---|
52 | } |
---|
53 | .claro .dojoxTriStateCheckBoxCheckedDisabled { |
---|
54 | /* disabled and checked */ |
---|
55 | |
---|
56 | background-position: -90px; |
---|
57 | } |
---|
58 | .claro .dojoxTriStateCheckBoxMixedDisabled { |
---|
59 | /* disabled and mixed */ |
---|
60 | |
---|
61 | background-position: -120px; |
---|
62 | } |
---|
63 | .claro .dojoxTriStateCheckBoxHover { |
---|
64 | /* hovering over and unchecked */ |
---|
65 | |
---|
66 | background-position: -60px; |
---|
67 | } |
---|
68 | .claro .dojoxTriStateCheckBoxCheckedHover { |
---|
69 | /* hovering over and checked */ |
---|
70 | |
---|
71 | background-position: -45px; |
---|
72 | } |
---|
73 | .claro .dojoxTriStateCheckBoxMixedHover { |
---|
74 | /* hovering over and mixed */ |
---|
75 | |
---|
76 | background-position: -75px; |
---|
77 | } |
---|
78 | |
---|
79 | .dijit_a11y .dojoxTriStateCheckBoxHover .dojoxTriStateCheckBoxInner, |
---|
80 | .dijit_a11y .dojoxTriStateCheckBoxFocused .dojoxTriStateCheckBoxInner{ |
---|
81 | /* focused or hovering over */ |
---|
82 | border: dashed; |
---|
83 | } |
---|
84 | |
---|
85 | .dijit_a11y .dojoxTriStateCheckBoxHover .dojoxTriStateCheckBoxInner, |
---|
86 | .dijit_a11y .dojoxTriStateCheckBoxFocused .dojoxTriStateCheckBoxInner{ |
---|
87 | /* focused or hovering over */ |
---|
88 | border: solid; |
---|
89 | } |
---|
90 | |
---|
91 | .dijit_a11y .dojoxTriStateCheckBoxDisabled .dojoxTriStateCheckBoxInner{ |
---|
92 | /* focused or hovering over */ |
---|
93 | opacity: 0.5; |
---|
94 | } |
---|
95 | |
---|
96 | .dj_ie .dijit_a11y .dojoxTriStateCheckBoxDisabled .dojoxTriStateCheckBoxInner{ |
---|
97 | /* disabled */ |
---|
98 | } |
---|
99 | |
---|
100 | |
---|
101 | .dojoxTriStateCheckBoxInner{ |
---|
102 | /* inner text */ |
---|
103 | |
---|
104 | visibility: hidden; |
---|
105 | display: none; |
---|
106 | position: absolute; |
---|
107 | text-align: center; |
---|
108 | } |
---|
109 | |
---|
110 | .dijit_a11y .dojoxTriStateCheckBoxInner{ |
---|
111 | /* inner text */ |
---|
112 | |
---|
113 | visibility: visible; |
---|
114 | display: block; |
---|
115 | } |
---|
116 | |
---|
117 | .dojoxTriStateCheckBoxInput { |
---|
118 | /* place the actual input on top, but all-but-invisible */ |
---|
119 | opacity: 0.01; |
---|
120 | padding: 0; |
---|
121 | margin: 0, |
---|
122 | border: 0; |
---|
123 | width: 15px; |
---|
124 | height: 16px; |
---|
125 | background-position:center center; |
---|
126 | background-repeat:no-repeat; |
---|
127 | } |
---|
128 | |
---|
129 | .dj_ie .dojoxTriStateCheckBoxInput { |
---|
130 | filter: alpha(opacity=0); |
---|
131 | } |
---|