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