author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Thu, 26 Aug 2010 11:35:02 +0200 | |
branch | stable |
changeset 6160 | 12038ca95f0f |
parent 5819 | 1017163825c7 |
child 6140 | 65a619eb31c4 |
permissions | -rw-r--r-- |
0 | 1 |
/* styles for generated forms |
2 |
* |
|
3 |
* :organization: Logilab |
|
5767
1d811df051c2
[packaging] MANIFEST.in cleanups, update js/css copyright, remove no more used files
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5038
diff
changeset
|
4 |
* :copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
0 | 5 |
* :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
6 |
*/ |
|
7 |
||
8 |
div.formTitle { |
|
9 |
width: 100%; |
|
10 |
font-size : 160%; |
|
11 |
font-weight: bold; |
|
12 |
padding-bottom : 0.4em; |
|
13 |
text-transform: capitalize; |
|
14 |
margin-bottom: 0.6em |
|
15 |
} |
|
16 |
||
17 |
div.formTitle span { |
|
18 |
padding: 4px 0px; |
|
19 |
display: block; |
|
20 |
} |
|
21 |
||
22 |
div.iformTitle { |
|
23 |
font-weight: bold; |
|
24 |
font-size: 110%; |
|
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
25 |
background: %(formHeaderBgColor)s; |
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
26 |
border: 1px solid %(formHeaderBgColor)s; /*#b7b6a3 */ |
0 | 27 |
border-bottom: none; |
28 |
} |
|
29 |
||
30 |
div.iformTitle span { |
|
31 |
margin: 0.5em; |
|
32 |
} |
|
33 |
||
34 |
div.iformTitle span.icounter { |
|
35 |
margin: 0em; |
|
36 |
} |
|
37 |
||
38 |
div.iformTitle a { |
|
39 |
font-size: 80%; |
|
40 |
} |
|
41 |
||
42 |
div.formBody { |
|
43 |
width:100%; |
|
44 |
} |
|
45 |
||
46 |
fieldset.subentity { |
|
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
47 |
border: 1px solid %(formHeaderBgColor)s; |
0 | 48 |
display: block; |
49 |
margin-bottom: 1em; |
|
50 |
padding: 0.4em; |
|
51 |
} |
|
52 |
||
53 |
table.attributeForm { |
|
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
54 |
border: 1px solid %(formHeaderBgColor)s; |
0 | 55 |
margin-bottom: 1em; |
1412
f3361e29d91f
give more space to labels in forms
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
1077
diff
changeset
|
56 |
padding: 0.8em 1.2em; |
f3361e29d91f
give more space to labels in forms
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
1077
diff
changeset
|
57 |
width: 100%; |
0 | 58 |
} |
59 |
||
60 |
fieldset.subentity table td { |
|
61 |
padding: 2px; |
|
62 |
vertical-align: top; |
|
63 |
} |
|
64 |
||
65 |
fieldset.subentity table.attributeForm { |
|
66 |
border: none; |
|
67 |
padding: 0em; |
|
68 |
} |
|
69 |
||
70 |
.attributeForm, |
|
71 |
.attributeForm th, |
|
72 |
.attributeForm td { |
|
73 |
border-collapse: separate; |
|
74 |
} |
|
75 |
||
76 |
table.attributeForm th, |
|
77 |
table.attributeForm td { |
|
2999
0bf6c52447d0
B [css] #344441 edit form is too spread out
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
1412
diff
changeset
|
78 |
padding : .2em 2px; |
0 | 79 |
} |
80 |
||
81 |
table.attributeForm th { |
|
1412
f3361e29d91f
give more space to labels in forms
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
1077
diff
changeset
|
82 |
text-align: left; |
f3361e29d91f
give more space to labels in forms
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
1077
diff
changeset
|
83 |
width: 12em; |
0 | 84 |
} |
85 |
||
86 |
table.attributeForm div#comfirmPsw { |
|
87 |
} |
|
88 |
||
89 |
table.attributeForm input, |
|
90 |
table.attributeForm textarea, |
|
91 |
table.attributeForm select { |
|
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
92 |
border: 1px solid %(formHeaderBgColor)s; /*#b7b6a3*/ |
0 | 93 |
} |
94 |
||
95 |
table.attributeForm textarea { |
|
96 |
font: 100% normal Courier, monospace; |
|
97 |
width: 100%; |
|
98 |
} |
|
99 |
||
100 |
table.attributeForm label, |
|
101 |
.entityForm .label { |
|
1412
f3361e29d91f
give more space to labels in forms
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
1077
diff
changeset
|
102 |
padding : 0.2em 1em 0.2em 0; |
0 | 103 |
} |
104 |
||
105 |
table.attributeForm label.required { |
|
106 |
background: url("required.png") 100% 50% no-repeat; |
|
107 |
} |
|
108 |
||
4280
15d541321a8c
more input/button fixes
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
3806
diff
changeset
|
109 |
.entityForm .validateButton { |
0 | 110 |
margin: 5px 10px 5px 0px; |
111 |
} |
|
112 |
||
113 |
a.addEntity { |
|
114 |
display:block ; |
|
115 |
margin-bottom:1em ; |
|
116 |
padding-left:0.2em ; |
|
117 |
font-weight: bold ; |
|
118 |
} |
|
119 |
||
120 |
table#relatedEntities { |
|
121 |
margin: 10px 0px; |
|
122 |
border-collapse: separate; |
|
123 |
} |
|
124 |
||
125 |
table#relatedEntities th, |
|
126 |
table#relatedEntities td { |
|
127 |
padding : 0px 2px; |
|
128 |
} |
|
129 |
||
130 |
table#relatedEntities tr.separator { |
|
131 |
border-bottom: none; |
|
132 |
text-align: center; |
|
133 |
} |
|
134 |
||
135 |
table#relatedEntities th { |
|
136 |
text-align: right; |
|
137 |
width:200em; |
|
138 |
} |
|
139 |
||
140 |
table#relatedEntities th.warning { |
|
141 |
border: none; |
|
142 |
text-align: center; |
|
143 |
} |
|
144 |
||
145 |
table#relatedEntities td span { |
|
146 |
display: inline; |
|
147 |
} |
|
148 |
||
149 |
table#relatedEntities ul { |
|
150 |
margin: 0px; |
|
151 |
padding: 0px; |
|
152 |
} |
|
153 |
||
154 |
table#relatedEntities td { |
|
155 |
width: 100%; |
|
156 |
} |
|
157 |
||
158 |
a.handle { |
|
159 |
font-family: Courier; |
|
160 |
font-size: 120%; |
|
161 |
} |
|
162 |
||
163 |
a.editionPending { |
|
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
164 |
color: #9c9b24; /*557755*/ |
0 | 165 |
font-weight: bold; |
166 |
} |
|
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
167 |
|
0 | 168 |
div.pendingDelete { |
169 |
text-decoration: line-through; |
|
170 |
} |
|
171 |
||
172 |
div.notransform { |
|
173 |
text-transform: none; |
|
174 |
} |
|
175 |
||
176 |
div.inlinedform { |
|
177 |
margin-left: 2em; |
|
178 |
} |
|
179 |
||
850
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
180 |
div.editableField { |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
181 |
display: inline; |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
182 |
} |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
183 |
|
3767
03924de0014d
reledit: stuff the value into its own div and properly hide it when necessary (but dont lump it with the landingzone div for it switches the form on when one clicks on a value to traverse it)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3761
diff
changeset
|
184 |
div.editableFieldValue { |
03924de0014d
reledit: stuff the value into its own div and properly hide it when necessary (but dont lump it with the landingzone div for it switches the form on when one clicks on a value to traverse it)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3761
diff
changeset
|
185 |
display: inline; |
03924de0014d
reledit: stuff the value into its own div and properly hide it when necessary (but dont lump it with the landingzone div for it switches the form on when one clicks on a value to traverse it)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3761
diff
changeset
|
186 |
} |
03924de0014d
reledit: stuff the value into its own div and properly hide it when necessary (but dont lump it with the landingzone div for it switches the form on when one clicks on a value to traverse it)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
3761
diff
changeset
|
187 |
|
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
188 |
/* div.editableField:hover, */ |
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
189 |
/* div.editableField p:hover { */ |
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
190 |
/* background-color: #eeedd9; */ |
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
191 |
/* } */ |
850
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
192 |
|
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
193 |
.error input, /* error added by the form renderer */ |
5038
90493551b1eb
[form] fix validation error handling
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4280
diff
changeset
|
194 |
input.error { /* error added by javascript */ |
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
195 |
background: transparent %(errorMsgBgImg)s; |
850
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
196 |
} |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
197 |
|
5038
90493551b1eb
[form] fix validation error handling
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4280
diff
changeset
|
198 |
span.errorMsg { |
850
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
199 |
display: block; |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
200 |
font-weight: bold; |
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
201 |
color: %(errorMsgColor)s; |
850
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
202 |
} |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
203 |
|
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
204 |
option.separator { |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
205 |
font-weight: bold; |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
206 |
background: #ccc; |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
207 |
text-align: center; |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
208 |
} |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
209 |
|
0 | 210 |
div.notice { |
211 |
display: none; |
|
212 |
font-style: italic; |
|
213 |
font-size: 110%; |
|
214 |
padding-left: 2em; |
|
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
215 |
background : %(msgBgColor)s %(infoMsgBgImg)s; |
0 | 216 |
} |
850
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
217 |
|
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
218 |
.helper{ |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
219 |
font-size: 96%; |
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
220 |
color: %(helperColor)s; |
850
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
221 |
} |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
222 |
|
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
223 |
.helper:hover { |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
224 |
color: #000; |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
225 |
cursor: default; |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
226 |
} |
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
227 |
|
4280
15d541321a8c
more input/button fixes
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
3806
diff
changeset
|
228 |
.validateButton { |
850
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
229 |
margin: 1em 1em 0px 0px; |
5819
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
230 |
border-width: 1px; |
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
231 |
border-style: solid; |
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
232 |
border-color: %(buttonBorderColor)s %(actionBoxTitleBgColor)s %(actionBoxTitleBgColor)s %(buttonBorderColor)s; |
1017163825c7
[css] more css rework, need visual test in compat/new modes
katia
parents:
5767
diff
changeset
|
233 |
background: %(buttonBgColor)s %(buttonBgImg)s; |
850
b747f1a1ced0
Split cubicweb.css into small parts
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
234 |
} |