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