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
23 {
24     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;
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 asdffff
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     height:16px;
124 }
125 .roo-gecko .x-form-text {
126     height:18px;
127     padding-top: 2px;
128     padding-bottom: 0px;
129 }
130
131 /* ---------------------- FORM INVALID --------------------- */
132
133 .x-form-invalid-icon 
134 {
135     display: block;
136     position: absolute;
137     top: 0px;
138     left: 0px;
139     height: 16px;
140     width: 16px;
141     visibility: hidden;
142     /* need a nice icon for this */
143     background: url(../images/default/tree/drop-no.gif) no-repeat 0 0;
144     
145 }
146 .x-form-invalid
147 {
148     
149     background: url(../images/default/grid/invalid_line.gif) repeat-x 0 16px;
150     border: 1px solid red;
151 }
152 textarea.x-form-invalid
153 {
154     background: none;
155     
156 }
157
158
159 /* ---------------------- FORM LINE CLEARER  --------------------- */
160
161 .x-form-clear-left ,
162 .x-form-clear,
163 {
164     font-size: 0px;
165     height: 0px;
166     line-height: 0px;
167     overflow: hidden;
168 }
169 .x-form-clear-left
170 {
171     clear: left;
172 }
173 .x-form-clear
174 {
175     clear: both;
176 }
177
178 /* ---------------------- FORM COLUMNS --------------------- */
179
180 .x-form-column
181 {
182     float: left;
183     margin: 0px;
184     padding: 0px;
185     overflow: hidden;
186     width: 47%;
187     
188 }
189
190 /* ---------------------- FORM FIELDSETS --------------------- */
191
192
193 .x-form fieldset
194 {
195     border: 1px solid #ccc;
196     padding-top: 7px;
197     padding-left: 12px;
198     padding-bottom: 7px;
199     margin-bottom:9px;
200     
201 }
202
203 .x-form fieldset legend {
204     font-weight: bold;
205     
206 }
207 /* ---------------------- FORM CHECKBOXES --------------------- */
208
209 .x-form-cb-label
210 {
211     clear :none !important;
212     float: none !important;;
213     display: inline !important;;
214     margin-left: 4px;
215 }
216
217 /* ---------------------- FORM COMBOS --------------------- */
218
219 /** -- see also the combo.css */
220
221 .x-form-field-wrap .x-form-trigger {
222      
223      cursor: pointer;
224      border-left: 0px solid;
225      
226      position: absolute;
227      
228     /*  top: -1px; */
229      background:url(../images/default/combo/arrow.gif); /* arrow image, 15x15px */
230      background-repeat:no-repeat;
231      background-position:center; /* centers image in div, creating 1px white border effect */
232 }
233
234
235
236 /* ---------------------- FORM BUTTON BAR --------------------- */
237
238 .x-form .x-form-btns-ct .x-form-btns-center {
239     text-align: center;
240 }
241 .x-form .x-form-btns-ct .x-form-btns-center table {
242     margin: 0px auto;
243 }
244
245 .x-form .x-form-btns-ct   .x-form-btns td.x-form-btn-td {
246     padding: 3px;
247 }
248
249 .x-form .x-form-btns-ct .x-form-btns td  {
250     border: 0px;
251     padding: 0px;
252 }
253
254 .x-form .x-form-btns-ct .x-btn {
255     clear: none;
256     float: right;
257 }
258
259 /* ---------------------- FORM RESIZE CALC TRICK --------------------- */
260 .x-form-grow-sizer
261 {
262     position: absolute;
263     top: -10000px;
264     left: -10000px;
265     visibility: hidden;
266 }
267
268
269
270
271
272