1 | |
---|
2 | |
---|
3 | /* The hierarchical select. */ |
---|
4 | .hierarchical-select-wrapper .hierarchical-select .selects { |
---|
5 | float: left; /* If a block is floated, it won't consume as much width as |
---|
6 | available, only just enough. This allows the grippie to |
---|
7 | perfectly scale with the with consumed by the selects. */ |
---|
8 | } |
---|
9 | |
---|
10 | .hierarchical-select-wrapper .hierarchical-select .selects .grippie { |
---|
11 | clear: left; |
---|
12 | height: 9px; |
---|
13 | overflow: hidden; |
---|
14 | background: #eee url(images/grippie.png) no-repeat center 2px; |
---|
15 | border: 1px solid #ddd; |
---|
16 | border-top-width: 0; |
---|
17 | cursor: s-resize; |
---|
18 | margin-right: 0.5em; /* Give the grippie the same margin as each select. */ |
---|
19 | min-width: 70px; /* Hack for IE, makes the grip usable, but not yet the same as in other browsers. */ |
---|
20 | } |
---|
21 | |
---|
22 | .hierarchical-select-wrapper .hierarchical-select select, |
---|
23 | .hierarchical-select-wrapper .hierarchical-select .add-to-dropbox, |
---|
24 | .hierarchical-select-wrapper .hierarchical-select .create-new-item { |
---|
25 | margin: 0; |
---|
26 | margin-right: .5em; |
---|
27 | margin-bottom: 3px; |
---|
28 | float: left; |
---|
29 | } |
---|
30 | |
---|
31 | |
---|
32 | /* The flat select (only used in GET forms). */ |
---|
33 | .hierarchical-select-wrapper .flat-select { |
---|
34 | display: none; |
---|
35 | } |
---|
36 | |
---|
37 | |
---|
38 | /* The pseudo-modal window for creating a new item or new level. */ |
---|
39 | .hierarchical-select-wrapper .hierarchical-select .create-new-item { |
---|
40 | padding: .7em; |
---|
41 | border: 2px outset gray; |
---|
42 | } |
---|
43 | |
---|
44 | .hierarchical-select-wrapper .hierarchical-select .create-new-item { |
---|
45 | width: 11em; |
---|
46 | } |
---|
47 | |
---|
48 | .hierarchical-select-wrapper .hierarchical-select .create-new-item-create, |
---|
49 | .hierarchical-select-wrapper .hierarchical-select .create-new-item-cancel { |
---|
50 | float: right; |
---|
51 | margin: 0; |
---|
52 | margin-left: .4em; |
---|
53 | } |
---|
54 | |
---|
55 | .hierarchical-select-wrapper .hierarchical-select .create-new-item-input { |
---|
56 | width: 10.5em; |
---|
57 | margin: 0; |
---|
58 | margin-bottom: 1em; |
---|
59 | float: left; |
---|
60 | clear: right; |
---|
61 | } |
---|
62 | |
---|
63 | |
---|
64 | /* Level labels styles. */ |
---|
65 | .hierarchical-select-level-labels-style-bold .hierarchical-select select option.level-label { |
---|
66 | font-weight: bold; |
---|
67 | } |
---|
68 | |
---|
69 | .hierarchical-select-level-labels-style-inversed .hierarchical-select select option.level-label { |
---|
70 | background-color: #000000; |
---|
71 | color: #FFFFFF; |
---|
72 | } |
---|
73 | |
---|
74 | .hierarchical-select-level-labels-style-underlined .hierarchical-select select option.level-label { |
---|
75 | text-decoration: underline; |
---|
76 | } |
---|
77 | |
---|
78 | |
---|
79 | /* Child level indicator. */ |
---|
80 | .hierarchical-select-wrapper .hierarchical-select option.has-children { |
---|
81 | background: url(images/arrow.png) no-repeat right center; |
---|
82 | } |
---|
83 | |
---|
84 | |
---|
85 | /* Dropbox limit warning.*/ |
---|
86 | p.hierarchical-select-dropbox-limit-warning { |
---|
87 | padding: 0; |
---|
88 | color: #F7A54F; |
---|
89 | font-size: 110%; |
---|
90 | padding-left: .5em; |
---|
91 | } |
---|
92 | |
---|
93 | |
---|
94 | /* The dropbox table. */ |
---|
95 | .hierarchical-select-wrapper .dropbox-title { |
---|
96 | font-size: 115%; |
---|
97 | color: #898989; |
---|
98 | margin-bottom: 0.2em; |
---|
99 | } |
---|
100 | |
---|
101 | .hierarchical-select-wrapper .dropbox { |
---|
102 | display: inline-block; |
---|
103 | margin: .5em 0; |
---|
104 | } |
---|
105 | |
---|
106 | .hierarchical-select-wrapper .dropbox table { |
---|
107 | margin: 0; |
---|
108 | width: auto; |
---|
109 | max-width: 100%; |
---|
110 | min-width: 20em; |
---|
111 | color: gray; |
---|
112 | font-size: 90%; |
---|
113 | border: 1px solid gray; |
---|
114 | } |
---|
115 | |
---|
116 | tr.dropbox-entry { |
---|
117 | line-height: 1.3em; |
---|
118 | padding: .3em .6em; |
---|
119 | } |
---|
120 | |
---|
121 | tr.dropbox-entry.even { |
---|
122 | background-color: transparent; |
---|
123 | border-bottom: 1px solid #CCCCCC; |
---|
124 | } |
---|
125 | |
---|
126 | tr.dropbox-entry.odd { |
---|
127 | background-color: #EDF5FA; |
---|
128 | border-bottom: 1px solid #CCCCCC; |
---|
129 | } |
---|
130 | |
---|
131 | tr.dropbox-entry.first { |
---|
132 | border-top: 1px solid gray; |
---|
133 | } |
---|
134 | |
---|
135 | tr.dropbox-entry.last { |
---|
136 | border-bottom: 1px solid gray; |
---|
137 | } |
---|
138 | |
---|
139 | .dropbox-selected-item { |
---|
140 | font-weight: bold; |
---|
141 | } |
---|
142 | |
---|
143 | .hierarchical-select-item-separator { |
---|
144 | padding-left: .5em; |
---|
145 | padding-right: .5em; |
---|
146 | } |
---|
147 | |
---|
148 | td.dropbox-remove *, |
---|
149 | td.dropbox-remove a:link, |
---|
150 | td.dropbox-remove a:visited { |
---|
151 | color: #F7A54F; |
---|
152 | text-decoration: none; |
---|
153 | } |
---|
154 | |
---|
155 | td.dropbox-remove a:hover { |
---|
156 | text-decoration: underline; |
---|
157 | } |
---|
158 | |
---|
159 | tr.dropbox-is-empty { |
---|
160 | padding: .5em 1em; |
---|
161 | } |
---|
162 | |
---|
163 | |
---|
164 | /* The "Update" button and help text (used when Javascript is disabled). */ |
---|
165 | .hierarchical-select-wrapper .nojs .update-button { |
---|
166 | margin: 0 0 1em; |
---|
167 | } |
---|
168 | |
---|
169 | .hierarchical-select-wrapper .nojs .help-text { |
---|
170 | font-size: 90%; |
---|
171 | color: transparent; |
---|
172 | display: block; |
---|
173 | border: 1px dotted black; |
---|
174 | overflow: hidden; |
---|
175 | width: 34em; |
---|
176 | height: 1.2em; |
---|
177 | padding: .6em; |
---|
178 | line-height: normal; |
---|
179 | } |
---|
180 | |
---|
181 | .hierarchical-select-wrapper .nojs .help-text:hover { |
---|
182 | height: auto; |
---|
183 | width: auto; |
---|
184 | min-width: 25em; |
---|
185 | max-width: 45em; |
---|
186 | color: gray; |
---|
187 | } |
---|
188 | |
---|
189 | .hierarchical-select-wrapper .nojs .help-text .ask-to-hover { |
---|
190 | color: gray; |
---|
191 | font-style: italic; |
---|
192 | } |
---|
193 | |
---|
194 | .hierarchical-select-wrapper .nojs .help-text:hover .ask-to-hover { |
---|
195 | display: none; |
---|
196 | } |
---|
197 | |
---|
198 | .hierarchical-select-wrapper .nojs .help-text .highlight { |
---|
199 | text-decoration: underline; |
---|
200 | } |
---|
201 | |
---|
202 | .hierarchical-select-wrapper .nojs .help-text .warning { |
---|
203 | color: red; |
---|
204 | } |
---|
205 | |
---|
206 | .hierarchical-select-wrapper .nojs .help-text .solutions { |
---|
207 | margin: 0; |
---|
208 | padding: 0; |
---|
209 | } |
---|
210 | |
---|
211 | |
---|
212 | /* The 'waiting' class is set dynamically, during a callback to the server. */ |
---|
213 | .hierarchical-select-wrapper.waiting { |
---|
214 | opacity: 0.5; |
---|
215 | |
---|
216 | /* IE doesn't support CSS 2 properly. */ |
---|
217 | zoom: 1; |
---|
218 | filter: alpha(opacity=50); |
---|
219 | } |
---|
220 | |
---|
221 | |
---|
222 | /* Use a monospace font for the import/export config code text areas. */ |
---|
223 | .hierarchical-select-config-code { |
---|
224 | font-family: 'Monaco', 'Lucida Console', 'Consolas', monospace; |
---|
225 | } |
---|