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