css/form.css
[roojs1] / css / form.css
1 /* Form CSS - based on details in form_design.svg  */
2
3 .x-form 
4 {
5     margin: 5px;
6 }
7
8 /* ---------------------- LABELS --------------------- */
9 .x-form-item label
10 {
11     clear:left;
12     display : block;
13     float : left;
14     padding-left: 0px;
15     padding-right: 3px;
16     padding-bottom: 3px;
17     padding-top: 3px;
18     position: relative;
19     z-index: 2;
20 }
21
22 .x-form-label-right label
23 {
24     text-align: right;
25 }
26
27 .x-form-label-top .x-form-item label
28 {
29     clear: none;
30     float: none;
31     display: inline;
32     position: static;
33     margin-bottom: 2px;
34     width: auto;
35 }
36
37 /* ---------------------- FONTS --------------------- */
38 /* --- move to a more generic place... ---*/
39 .x-form-item,
40 .x-form-text,
41 .x-combo-list,
42 .x-form fieldset legend
43 {
44     font: normal 11px tahoma, verdana, helvetica;
45 }
46
47 /* ---------------------- FORM ITEM/ELEMENT/TEXT WRAPPING --------------------- */
48 .x-form-item {
49     display : block;
50     margin-bottom: 4px;
51 }
52
53 .x-form-element {
54     padding-left : 100px;
55     position: relative;
56 }
57 .x-form-field
58 {
59     margin: 0px;
60     
61 }
62 .x-form-text 
63 {
64     height: 14px; /* needs 20px in one of the non-roo projects..? */
65     line-height: 18px;
66     vertical-align: middle;
67     background: url(../images/default/form/bg.gif) repeat-x 0 0;  
68    
69     padding-left: 2px;
70     padding-right: 2px;
71     padding-top: 2px;
72     padding-bottom: 2px;
73 }
74 /* -- border around text elements */
75 .x-form-text,
76 .x-form-textarea,
77 .x-html-editor-wrap
78 {    
79  border: solid 1px black;
80 }
81 .x-form-field-wrap
82 {
83     position: relative;
84     whitespace: nowrap;
85 }
86
87  
88 /* gecko specific fix */
89
90 }
91 .roo-ie .roo-strict .x-form-text,
92 .roo-ie .x-form-text
93 {
94     padding-top: 0px;
95     padding-bottom: 0px;
96     margin-top: -1px;
97     height: 22px;
98 }
99
100 .roo-ie .x-toolbar .x-form-text
101 {
102     
103     padding-top: 0px;
104     padding-left: 2px;
105     height: 18px !important;
106 }
107
108
109 .roo-ie .x-form-date-trigger,
110 .roo-ie .x-form-arrow-trigger 
111 {
112     margin: 0px;
113     margin-top: 1px;
114     height: 20px !important;
115 }
116
117 /** some kind of kludge for the combo demo */
118 .roo-gecko .roo-strict .x-form-text {
119     height:18px;
120 }
121
122 .roo-gecko .x-form-item .x-form-text {
123     /* the dynamic demo needs 20px */
124     height:20px;
125 }
126 .roo-gecko .x-form-text {
127     height:18px;
128     padding-top: 2px;
129     padding-bottom: 0px;
130 }
131
132 .x-form-empty-field {
133     color : #666;
134 }
135
136 /* ---------------------- FORM INVALID --------------------- */
137
138 .x-form-invalid-icon 
139 {
140     display: block;
141     position: absolute;
142     top: 0px;
143     left: 0px;
144     height: 16px;
145     width: 16px;
146     visibility: hidden;
147     /* need a nice icon for this */
148     background: url(../images/default/tree/drop-no.gif) no-repeat 0 0;
149     
150 }
151 .x-form-invalid
152 {
153     
154     background: url(../images/default/grid/invalid_line.gif) repeat-x 0 16px;
155     border: 1px solid red;
156 }
157 textarea.x-form-invalid
158 {
159     background: none;
160     
161 }
162
163
164 /* ---------------------- FORM LINE CLEARER  --------------------- */
165
166 .x-form-clear-left ,
167 .x-form-clear,
168 {
169     font-size: 0px;
170     height: 0px;
171     line-height: 0px;
172     overflow: hidden;
173 }
174 .x-form-clear-left
175 {
176     clear: left;
177 }
178 .x-form-clear
179 {
180     clear: both;
181 }
182
183 /* ---------------------- FORM COLUMNS --------------------- */
184
185 .x-form-column
186 {
187     float: left;
188     margin: 0px;
189     padding: 0px;
190     overflow: hidden;
191     width: 47%;
192     
193 }
194
195 /* ---------------------- FORM FIELDSETS --------------------- */
196
197
198 .x-form fieldset
199 {
200     border: 1px solid #ccc;
201     padding-top: 7px;
202     padding-left: 12px;
203     padding-bottom: 7px;
204     margin-bottom:9px;
205     
206 }
207
208 .x-form fieldset legend {
209     font-weight: bold;
210     
211 }
212 /* ---------------------- FORM CHECKBOXES --------------------- */
213
214 .x-form-cb-label
215 {
216     clear :none !important;
217     float: none !important;;
218     display: inline !important;;
219     margin-left: 4px;
220 }
221
222 /* ---------------------- FORM COMBOS --------------------- */
223
224 /** -- see also the combo.css */
225
226 .x-form-field-wrap .x-form-trigger {
227      
228      cursor: pointer;
229      border-left: 0px solid;
230      
231      position: absolute;
232      
233     /*  top: -1px; */
234      background:url(../images/default/combo/arrow.gif); /* arrow image, 15x15px */
235      background-repeat:no-repeat;
236      background-position:center; /* centers image in div, creating 1px white border effect */
237 }
238
239
240
241 /* ---------------------- FORM BUTTON BAR --------------------- */
242
243 .x-form .x-form-btns-ct .x-form-btns-center {
244     text-align: center;
245 }
246 .x-form .x-form-btns-ct .x-form-btns-center table {
247     margin: 0px auto;
248 }
249
250 .x-form .x-form-btns-ct   .x-form-btns td.x-form-btn-td {
251     padding: 3px;
252 }
253
254 .x-form .x-form-btns-ct .x-form-btns td  {
255     border: 0px;
256     padding: 0px;
257 }
258
259 .x-form .x-form-btns-ct .x-btn {
260     clear: none;
261     float: right;
262 }
263
264 /* ---------------------- FORM RESIZE CALC TRICK --------------------- */
265 .x-form-grow-sizer
266 {
267     position: absolute;
268     top: -10000px;
269     left: -10000px;
270     visibility: hidden;
271 }
272
273
274
275
276
277