css/toolbar.css
[roojs1] / css / toolbar.css
1 /* ------- MAIN TOOLBAR ---------------- */
2
3 .x-toolbar {\r
4         background: url(../images/default/toolbar/gray-bg.gif) repeat-x 0 0;\r
5         border-top: 1px solid #cbc7b8;
6     border-bottom: 1px solid #cbc7b8;\r
7         display: block;
8     position: relative;\r
9         padding: 2px;\r
10 }
11 /*
12 .x-toolbar .x-btn 
13 {
14     margin-left: 2px;
15     margin-right: 2px;
16 }
17 */
18 /* ------------ FONTS / colors.-----------------------*/
19 .x-toolbar td,
20 .x-toolbar span,
21 .x-toolbar input,
22 .x-toolbar div,
23 .x-toolbar select,
24 .x-toolbar label
25 {
26         
27     font: normal 11px tahoma, verdana, helvetica;
28     white-space: nowrap;
29     line-height: normal;
30     
31 }
32
33
34 /* ------------ VERTICAL ALIGNMENT -----------------------*/
35 .x-toolbar td
36 {
37     vertical-align: middle;
38 }
39
40 /* ------------ TOOLBAR BUTTONS -----------------------*/
41
42 .x-toolbar .x-btn-left,
43 .x-toolbar .x-btn-right,
44 .x-toolbar .x-btn-center
45 {
46
47  /*   background: none; */
48    
49 }
50 .x-toolbar .x-btn-center
51 {
52     padding: 0px;
53 }
54
55 /*  ------------ TOOLBAR BUTTONS  (WITH MENU) --------- */
56 .x-toolbar .x-btn-with-menu .x-btn-center em
57 {
58     padding-right: 14px;
59 }
60
61
62
63 /* ------------ TOOLBAR ITEMS -----------------------*/
64
65 .x-toolbar .ytb-text
66 {
67     padding: 2px;
68 }
69
70 /* ------------ TOOLBAR OVER / CLICK / CENTER-----------------------*/
71
72 .x-toolbar .x-btn-click .x-btn-center,
73 .x-toolbar .x-btn-pressed .x-btn-center,
74 .x-toolbar .x-btn-active .x-btn-center,
75 .x-toolbar .x-btn-over .x-btn-center,
76
77 .x-toolbar .x-btn-click .x-btn-left,
78 .x-toolbar .x-btn-pressed .x-btn-left,
79 .x-toolbar .x-btn-active .x-btn-left,
80 .x-toolbar .x-btn-over .x-btn-left,
81
82 .x-toolbar .x-btn-click .x-btn-right,
83 .x-toolbar .x-btn-pressed .x-btn-right,
84 .x-toolbar .x-btn-active .x-btn-right,
85 .x-toolbar .x-btn-over .x-btn-right
86 {
87     background-repeat: no-repeat;
88     background-image: url(../images/default/basic-dialog/btn-sprite.gif);
89     
90 }
91
92 .x-toolbar .x-btn-click .x-btn-center,
93 .x-toolbar .x-btn-pressed .x-btn-center,
94 .x-toolbar .x-btn-active .x-btn-center
95 {
96     background-position:0  -42px;
97     background-repeat: repeat-x;
98 }
99
100 .x-toolbar .x-btn-over .x-btn-center
101 {
102     background-position:  0 -105px;
103     background-repeat: repeat-x;
104
105
106 .x-toolbar .x-btn-click .x-btn-left,
107 .x-toolbar .x-btn-pressed .x-btn-left,
108 .x-toolbar .x-btn-active .x-btn-left
109 {
110     background-position:0  0;
111     
112 }
113
114 .x-toolbar .x-btn-over .x-btn-left
115 {
116     background-position:  0 -63px;
117    
118
119
120 .x-toolbar .x-btn-click .x-btn-right,
121 .x-toolbar .x-btn-pressed .x-btn-right,
122 .x-toolbar .x-btn-active .x-btn-right
123 {
124     background-position:0  -21px;
125     
126 }
127
128 .x-toolbar .x-btn-over .x-btn-right
129 {
130     background-position:  0 -84px;
131  
132
133
134 /* ------------ COMBOS/ FIELDS-----------------------*/
135 .x-toolbar .x-form-text 
136 {
137     height:14px;
138 }
139
140
141
142 /* ------------ MENUS -----------------------*/
143
144 .x-menu 
145 {
146     background: white url(../images/default/menu/menu-bg.gif) repeat-y 0 0;
147     font:normal 11px arial, tahoma, verdana, helvetica;
148     border: 1px solid black;
149     margin-top: 2px;
150     margin-left: 2px;
151 }
152
153 .x-menu-plain
154 {
155     background: none;
156 }
157 .x-menu-plain .x-menu-list-item .x-color-palette, 
158 .x-menu-plain .x-menu-list-item .x-date-picker 
159
160     margin-left: 4px;
161     margin-right: 0;
162 }
163 .x-menu-focus
164 {
165     position: absolute;
166     left: 0;
167     top: -5px;
168     width: 0;
169     height: 0;
170 }
171 .x-menu-list
172 {
173     border: 1px solid white;
174 }
175 .x-menu li
176 {
177     line-height; 100%;
178 }
179
180 .x-menu-list-item
181 {
182     -moz-user-select: none;
183     display: block;
184     /* padding: 1px; */
185     white-space: nowrap;
186 }
187
188
189 .x-menu-item
190 {
191     pointer: cursor;
192     color: #333;
193     display: block;
194     line-height: 15px;
195     outline: none;
196     padding: 3px 21px 3px 3px;
197     text-decoration:none ;
198     white-space: nowrap;
199 }
200 .x-menu-item-active
201 {
202     background-color: #ABC9C2;
203 }
204
205
206 .x-menu li.x-menu-sep-li
207 {
208     
209     font-size: 1px;
210     line-height: 1px;
211     background: #ccc;
212     display: block
213     height: 1px;
214     margin: 3px 3px 3px 32px;
215 }
216 .x-menu-item-icon
217 {
218     background-position; center center;
219     border: 0px;
220     width: 16px;
221     height: 16px;
222     padding: 0px;
223     margin: 0 11px 0 0;
224     vertical-align: middle;
225     
226 }
227
228
229 .x-menu-list-item .x-menu-item-arrow 
230 {
231     background: url(../images/default/grid/page-next.gif) no-repeat right 2px;
232 }
233
234
235
236
237
238 /* ------------ CHECKBOX ITEM-----------------------*/
239
240
241 /* ------------ DISABLED ITEMS -----------------------*/
242 .x-item-disabled .x-menu-item ,
243 .x-item-disabled
244 {
245     color : #ccc;
246     cursor: default !important;
247     
248 }
249
250
251
252
253
254
255
256 /* ------------ OLD STUFF!!! -----------------------*/
257 .x-menu-check-item .x-menu-item-icon
258 {
259     background: url(../images/default/menu/chk-sprite.gif) no-repeat 0 0;
260     width: 16px;
261     height: 16px;
262 }
263 .x-menu-item-checked .x-menu-check-item  .x-menu-item-icon
264 {
265     background-position: 0 -16px;
266     width: 16px;
267     height: 16px;
268 }
269
270
271
272
273 /* NOT SURE WHAT THIS DOES ? - MS HACK? */
274 \r
275 \r
276 .mso .x-toolbar, .x-grid-mso .x-toolbar
277 {\r
278         border: 0px none;\r
279         background: url(../images/default/grid/mso-hd.gif);\r
280 }\r
281 */
282
283
284 /* disabled?? */\r
285 .x-toolbar .x-tb-button-disabled .x-tb-button-inner
286 {\r
287         color:gray;\r
288         cursor:default;\r
289 }\r
290
291
292 /* a seperator */
293
294
295
296
297
298
299
300 .x-toolbar .ytb-sep {
301     background-image:url(../images/default/grid/grid-split.gif);
302     background-position:center center;
303     background-repeat:no-repeat;
304     border:0pt none;
305     cursor:default;
306     display:block;
307     font-size:1px;
308     height:16px;
309     margin:0pt 2px;
310     overflow:hidden;
311     width:4px;
312 }
313
314
315
316
317 \r
318 /*\r
319  Default button class is icon only. Add a class with a background-image property\r
320  to your toolbar button\r
321 */
322 /*\r
323 .x-toolbar .x-tb-button-inner
324 {\r
325         background-position: center;\r
326         background-repeat: no-repeat;\r
327         display: block;\r
328         height: 16px;\r
329         width: 16px;\r
330         cursor:pointer;\r
331         white-space: nowrap;\r
332 }
333 */\r
334 \r
335 /* \r
336  Button class for icon and text. Add this class and a class with a background-image \r
337  to your toolbar button for both text and icon \r
338 */
339 /*
340 /*\r
341 .x-toolbar .x-tb-text-icon
342 {\r
343         background-position: 0px 0px;\r
344         background-repeat: no-repeat;\r
345         padding-left:18px;\r
346         padding-top:1px;\r
347         width:auto;\r
348         display:block;\r
349 }
350 */\r
351 */\r
352 /* \r
353  Button class for a button with only text. Add this class  \r
354  to your toolbar button for a just text button\r
355 */
356 /*\r
357 .x-toolbar .x-tb-text-only{\r
358         background:none;\r
359         padding-left:0px;\r
360         padding-top:1px;\r
361         width:auto;\r
362         display:block;\r
363 }\r
364 .x-toolbar .x-tb-text{\r
365    padding:2px;\r
366 }\r
367 .x-toolbar .x-tb-button{\r
368    padding:2px 3px;\r
369         display:block;\r
370 }\r
371 .x-toolbar .x-tb-button-over{\r
372    background:#c3d3ed url(../images/default/toolbar/btn-over-bg.gif) repeat-x;\r
373         border:1px solid #6593cf;\r
374         padding:1px 2px;\r
375 }\r
376 .x-toolbar .x-tb-sep {\r
377         background-image: url(../images/default/grid/grid-split.gif);\r
378         background-position: center;\r
379         background-repeat: no-repeat;\r
380         display: block;\r
381         font-size: 1px;\r
382         height: 16px;\r
383         width:4px;\r
384         overflow: hidden;\r
385         cursor:default;\r
386         margin: 0px 2px 0px;\r
387         border:0px;\r
388 }\r
389 .mso .x-toolbar .x-tb-sep, .x-grid-mso .x-toolbar .x-tb-sep{\r
390         background-image: url(../images/default/grid/grid-blue-split.gif);\r
391 }\r
392 \r
393 */