1 | /* <dtml-with base_properties> (do not remove this :) */ |
---|
2 | /* <dtml-call "REQUEST.set('portal_url', portal_url())"> (not this either :) */ |
---|
3 | |
---|
4 | /* |
---|
5 | *************************************************************************************************** |
---|
6 | * * |
---|
7 | * There are two global self-excluding classes: 'viewing' and 'sorting', * |
---|
8 | * one local class 'editing' for menu items which are expanded for editing, * |
---|
9 | * and one more local class 'adding' for adding form when it's in open state. * |
---|
10 | * * |
---|
11 | * Reorder action are always available and it TEMPORARY stop other actions on the form: * |
---|
12 | * editing items * |
---|
13 | * deleting items * |
---|
14 | * toggling item visibility * |
---|
15 | * adding item * |
---|
16 | * * |
---|
17 | * After returning to 'viewing' class from 'sorting' all items become to the same state they * |
---|
18 | * were before sorting (in editing state or not). * |
---|
19 | * * |
---|
20 | * And the same behaviour for adding form: form state ('adding' or not) become the same it was * |
---|
21 | * before sorting. * |
---|
22 | * * |
---|
23 | * All actions except reordering could be done at any time in relationship to each other. * |
---|
24 | * * |
---|
25 | *************************************************************************************************** |
---|
26 | */ |
---|
27 | |
---|
28 | #app.viewing .reorder-controls, |
---|
29 | #app.sorting .sort-controls, |
---|
30 | #app.viewing li.editing .editform, |
---|
31 | #app #addaction.adding .field-visible, |
---|
32 | #app #addaction.adding .field-name dt, |
---|
33 | #app #addaction.adding .field-action, |
---|
34 | #app #addaction.adding .field-action label, |
---|
35 | #app #addaction.adding .advanced, |
---|
36 | #app #addaction.adding .field-id, |
---|
37 | #app #addaction.adding .field-condition, |
---|
38 | #app #addaction.adding .add-controls { |
---|
39 | display: block; |
---|
40 | } |
---|
41 | |
---|
42 | #app #busy, |
---|
43 | #app.viewing .noitems, |
---|
44 | #app .reorder-controls, |
---|
45 | #app .sort-controls, |
---|
46 | #app.viewing li.editing .url-helper, |
---|
47 | #app.viewing li.editing .tab-title, |
---|
48 | #app .drag-handle, |
---|
49 | #app .delete, |
---|
50 | #app .visibility, |
---|
51 | #app .editform, |
---|
52 | #app.sorting #addaction, |
---|
53 | #app .field-visible, |
---|
54 | #app .field-name dt, |
---|
55 | #app .field-action, |
---|
56 | #app .advanced, |
---|
57 | #app .field-id, |
---|
58 | #app .field-condition, |
---|
59 | #app .add-controls { |
---|
60 | display: none; |
---|
61 | } |
---|
62 | |
---|
63 | #app.working #busy, |
---|
64 | #app.viewing ul.csshover li:hover .delete, |
---|
65 | #app.viewing ul.csshover li.onHover .delete, |
---|
66 | #app.viewing ul.csshover li:hover .visibility, |
---|
67 | #app.viewing ul.csshover li.onHover .visibility, |
---|
68 | #app ul#roottabs.csshover li:hover .visibility, |
---|
69 | #app ul#roottabs.csshover li.onHover .visibility, |
---|
70 | #app.sorting .drag-handle { |
---|
71 | display: inline; |
---|
72 | } |
---|
73 | |
---|
74 | /**********************************************************/ |
---|
75 | |
---|
76 | #app.sorting #tabslist img.drag-handle { |
---|
77 | cursor: move; |
---|
78 | } |
---|
79 | |
---|
80 | #app .invisible span.tab-title { |
---|
81 | color:#aaa; |
---|
82 | } |
---|
83 | |
---|
84 | /*common***************************************************/ |
---|
85 | |
---|
86 | div.reorder-controls, |
---|
87 | div.sort-controls { |
---|
88 | float:left; |
---|
89 | } |
---|
90 | |
---|
91 | .drag-handle { |
---|
92 | float:left; |
---|
93 | margin:0.5em 0.5em 0 0; |
---|
94 | } |
---|
95 | |
---|
96 | #app ul { |
---|
97 | list-style-type: none; |
---|
98 | list-style-image: none; |
---|
99 | margin:2.5em 0 0 1.7em; |
---|
100 | } |
---|
101 | |
---|
102 | #app .delete { |
---|
103 | background: url(&dtml-portal_url;/trash.gif) 12px 50% no-repeat; |
---|
104 | padding: 0 0 0 25px; |
---|
105 | line-height:1.8em; |
---|
106 | font-size:80%; |
---|
107 | border:0; |
---|
108 | position:absolute; |
---|
109 | right:0; |
---|
110 | margin-right:-5.7em; |
---|
111 | color: &dtml-linkColor; !important; |
---|
112 | } |
---|
113 | |
---|
114 | * html #app .delete { |
---|
115 | margin-right:-4.7em; |
---|
116 | } |
---|
117 | |
---|
118 | #app ul.csshover li { |
---|
119 | border: 1px &dtml-borderStyle; transparent; |
---|
120 | border-right:0; |
---|
121 | padding: 0 0.5em; |
---|
122 | margin: 0.1em 0; |
---|
123 | width:35em; |
---|
124 | margin-right:6.5em; |
---|
125 | line-height:1.5em; |
---|
126 | clear:left; |
---|
127 | position:relative; |
---|
128 | } |
---|
129 | |
---|
130 | * html #app ul.csshover li { |
---|
131 | border-color:white; |
---|
132 | } |
---|
133 | |
---|
134 | #app ul.csshover li span { |
---|
135 | display:block; |
---|
136 | } |
---|
137 | |
---|
138 | #app ul.csshover li span.url-helper { |
---|
139 | position:absolute; |
---|
140 | right:0; |
---|
141 | margin-left:20%; |
---|
142 | padding-right:0.5em; |
---|
143 | overflow:hidden; |
---|
144 | font-size:80%; |
---|
145 | color:#aaa; |
---|
146 | text-align: right; |
---|
147 | width: 80%; |
---|
148 | |
---|
149 | } |
---|
150 | |
---|
151 | #app ul.csshover li.editing { |
---|
152 | padding:0; |
---|
153 | margin: 0; |
---|
154 | width:36em; |
---|
155 | } |
---|
156 | |
---|
157 | #app.sorting ul.csshover li.editing { |
---|
158 | padding: 0 0.5em; |
---|
159 | } |
---|
160 | |
---|
161 | #app li.editing form { |
---|
162 | margin:-0.1em; |
---|
163 | } |
---|
164 | |
---|
165 | * html #app li.editing form { |
---|
166 | margin: -0.2em 0 0 0; |
---|
167 | } |
---|
168 | |
---|
169 | #app dl { |
---|
170 | margin:0; |
---|
171 | } |
---|
172 | |
---|
173 | #app dl label { |
---|
174 | display:none; |
---|
175 | } |
---|
176 | |
---|
177 | #app dl dl label { |
---|
178 | display:block; |
---|
179 | } |
---|
180 | |
---|
181 | #app dd { |
---|
182 | margin:0; |
---|
183 | } |
---|
184 | |
---|
185 | #app dd dl { |
---|
186 | margin:0.5em 0; |
---|
187 | } |
---|
188 | |
---|
189 | #app input[type="text"] { |
---|
190 | width: 99.5%; |
---|
191 | } |
---|
192 | |
---|
193 | #app .bridge { |
---|
194 | position:absolute; |
---|
195 | left:-1.5em; |
---|
196 | top:0.2em; |
---|
197 | width:3em; |
---|
198 | } |
---|
199 | |
---|
200 | * html #app div.bridge { |
---|
201 | top:0; |
---|
202 | left:-2em; |
---|
203 | } |
---|
204 | |
---|
205 | #app input:focus { |
---|
206 | border: 1px inset threedface !important; |
---|
207 | } |
---|
208 | |
---|
209 | * html #app input { |
---|
210 | width:97.3%; |
---|
211 | padding: 0.1em 0.4em; |
---|
212 | } |
---|
213 | |
---|
214 | #app form div { |
---|
215 | line-height:1.4em; |
---|
216 | margin-top:0.1em; |
---|
217 | min-height:1.6em; |
---|
218 | } |
---|
219 | |
---|
220 | * html #app form div { |
---|
221 | margin-top:-0.2em; |
---|
222 | position:relative; |
---|
223 | height:1%; |
---|
224 | } |
---|
225 | |
---|
226 | #app div input { |
---|
227 | width:auto; |
---|
228 | padding: 0.05em 0.5em; |
---|
229 | float:left; |
---|
230 | margin:0 0.1em 0 0; |
---|
231 | } |
---|
232 | |
---|
233 | * html #app div input { |
---|
234 | padding: 0 0.3em; |
---|
235 | } |
---|
236 | |
---|
237 | div.field { margin-top:2em; } |
---|
238 | |
---|
239 | /*hover***************************************************/ |
---|
240 | |
---|
241 | #app.viewing ul#tabslist.csshover li:hover, |
---|
242 | #app.viewing ul#tabslist.csshover li.onHover { |
---|
243 | background-color: #FFFFDD; |
---|
244 | border: 1px inset threedface; |
---|
245 | cursor: text; |
---|
246 | } |
---|
247 | |
---|
248 | #app.viewing ul#tabslist.csshover li.editing { |
---|
249 | background-color: &dtml-backgroundColor;; |
---|
250 | border: 1px &dtml-borderStyle; white; |
---|
251 | cursor: auto; |
---|
252 | } |
---|
253 | |
---|
254 | #app ul#roottabs.csshover li:hover, |
---|
255 | #app ul#roottabs.csshover li.onHover { |
---|
256 | background-color: #FFFFDD; |
---|
257 | /* border: 1px inset threedface;*/ |
---|
258 | cursor: default; |
---|
259 | } |
---|
260 | |
---|
261 | /*edit*****************************************************/ |
---|
262 | |
---|
263 | #app dl.collapseAdvanced { |
---|
264 | margin-top:0.15em; |
---|
265 | position:relative; |
---|
266 | padding:0; |
---|
267 | border:0 !important; |
---|
268 | height:auto; |
---|
269 | line-height:1em; |
---|
270 | } |
---|
271 | |
---|
272 | #app dl.collapseAdvanced dt.headerAdvanced { |
---|
273 | cursor: pointer; |
---|
274 | font-size: 90%; |
---|
275 | font-weight:normal; |
---|
276 | position:absolute; |
---|
277 | padding-right:0.5em; |
---|
278 | display:block; |
---|
279 | margin:0; |
---|
280 | top:0; |
---|
281 | right:0; |
---|
282 | color: &dtml-globalFontColor;; |
---|
283 | line-height:2em; |
---|
284 | background-color:transparent; |
---|
285 | } |
---|
286 | |
---|
287 | #app dl.collapseAdvanced dd.contentAdvanced { |
---|
288 | padding:1em 1.5em 0 1.5em; |
---|
289 | border:0; |
---|
290 | background-color:&dtml-globalBackgroundColor;; |
---|
291 | } |
---|
292 | |
---|
293 | dl.expandedBlock dt.headerAdvanced { |
---|
294 | padding: 0 6px 0 22px; |
---|
295 | background: url(treeExpanded.gif) no-repeat 6px 50%; |
---|
296 | } |
---|
297 | |
---|
298 | dl.collapsedBlock dt.headerAdvanced { |
---|
299 | padding: 0 0 0 22px; |
---|
300 | background: url(treeCollapsed.gif) no-repeat 6px 50%; |
---|
301 | } |
---|
302 | |
---|
303 | #app dl.advanced { |
---|
304 | clear: both; |
---|
305 | } |
---|
306 | |
---|
307 | /****************************************************************/ |
---|
308 | |
---|
309 | #app #addaction { |
---|
310 | margin-left:1.7em; |
---|
311 | width:36.2em; |
---|
312 | position:relative; |
---|
313 | } |
---|
314 | |
---|
315 | * html #app #addaction { |
---|
316 | width:36.15em; |
---|
317 | } |
---|
318 | |
---|
319 | #app #addaction.adding .field-action label { |
---|
320 | position:absolute; |
---|
321 | line-height:2.1em; |
---|
322 | font-size:80%; |
---|
323 | color: &dtml-globalBorderColor;; |
---|
324 | right:0.5em; |
---|
325 | font-weight:normal; |
---|
326 | background-color:transparent; |
---|
327 | } |
---|
328 | |
---|
329 | #app #addaction.adding .field-action input { |
---|
330 | margin-top:0.1em; |
---|
331 | padding-right:9em; |
---|
332 | width:27em; |
---|
333 | } |
---|
334 | |
---|
335 | * html #app #addaction.adding .field-action input { |
---|
336 | padding-right:0.5em; |
---|
337 | width:96.8%; |
---|
338 | margin-top:-0.05em; |
---|
339 | } |
---|
340 | |
---|
341 | #app #addaction .bridge { |
---|
342 | left:-1.8em; |
---|
343 | top:0em; |
---|
344 | } |
---|
345 | |
---|
346 | * html #app #addaction .bridge { |
---|
347 | width:1.7em; |
---|
348 | left:-2em; |
---|
349 | } |
---|
350 | |
---|
351 | |
---|
352 | /* </dtml-with> (do not remove this either :) */ |
---|