@@ -71,17 +71,21 @@ javaxt.dhtml.Checkbox = function(parent, config) {
71
71
display : "inline-block"
72
72
} ,
73
73
74
+ /** Style for the checkbox
75
+ */
74
76
box : {
75
77
width : "13px" ,
76
78
height : "13px" ,
77
- border : "1px solid #cccccc " ,
79
+ border : "1px solid #ccc " ,
78
80
borderRadius : "3px" ,
79
81
backgroundColor : "#F6F6F6" ,
80
82
cursor : "pointer" ,
81
83
margin : "0px" ,
82
84
color : "#2b2b2b"
83
85
} ,
84
86
87
+ /** Style for the label next to the checkbox
88
+ */
85
89
label : {
86
90
fontFamily : "helvetica,arial,verdana,sans-serif" ,
87
91
fontSize : "14px" ,
@@ -90,31 +94,35 @@ javaxt.dhtml.Checkbox = function(parent, config) {
90
94
padding : "1px 0 0 5px"
91
95
} ,
92
96
97
+ /** Style for the checkmark inside the checkbox
98
+ */
93
99
check : {
94
100
content : "" ,
95
101
display : "block" ,
96
102
width : "3px" ,
97
103
height : "6px" ,
98
- border : "solid #ffffff " ,
104
+ border : "solid #fff " ,
99
105
borderWidth : "0 2px 2px 0" ,
100
106
transform : "rotate(45deg)" ,
101
107
margin : "1px 0 0 4px"
102
108
} ,
103
109
110
+ /** Style for the checkbox when it is selected/checked
111
+ */
104
112
select : {
105
113
backgroundColor : "#007FFF" ,
106
114
border : "1px solid #003EFF" ,
107
- color : "#FFFFFF "
115
+ color : "#fff "
108
116
} ,
109
117
118
+ /** Style for the mask used to disable the checkbox
119
+ */
110
120
disable : {
111
- backgroundColor : "#ffffff" ,
112
- border : "1px solid #ffffff" ,
113
- borderRadius : "3px" ,
114
- cursor : "pointer" ,
115
- opacity : "0.5"
121
+ cursor : "default"
116
122
} ,
117
123
124
+ /** Style for the checkbox when mouse hovers over
125
+ */
118
126
hover : {
119
127
backgroundColor : "#ededed"
120
128
}
@@ -169,6 +177,7 @@ javaxt.dhtml.Checkbox = function(parent, config) {
169
177
table . style . textAlign = "inherit" ;
170
178
table . style . color = "inherit" ;
171
179
table . style . width = "" ;
180
+ table . style . height = "" ;
172
181
var tr = table . addRow ( ) ;
173
182
174
183
@@ -303,6 +312,8 @@ javaxt.dhtml.Checkbox = function(parent, config) {
303
312
*/
304
313
this . enable = function ( ) {
305
314
mask . style . visibility = "hidden" ;
315
+ box . style . opacity = "" ;
316
+ label . style . opacity = "" ;
306
317
} ;
307
318
308
319
@@ -327,6 +338,8 @@ javaxt.dhtml.Checkbox = function(parent, config) {
327
338
var innerDiv = me . el . firstChild ;
328
339
innerDiv . insertBefore ( mask , innerDiv . firstChild ) ;
329
340
}
341
+ box . style . opacity = "0.5" ;
342
+ label . style . opacity = "0.5" ;
330
343
} ;
331
344
332
345
0 commit comments