On 12/14/2012 09:48 AM, Philippe Nobili wrote:
3. The last one is related to CSS-styling; in our graph-view, element
names are rendered using text fields in a hierarchical graph view; below
a short screen capture to help you visualize:
We would like to make those text-field thin and and discrete in this
view, at least avoiding having a different background color for them.
The following:
text-field(attribute,"Name", background-color,transparent)
Does not seem to work (specifying another background-color works OK, but
changes the color for all text fields in the view even those used in
different elements...).
Is there a way to assign a transparent
background color to text fields ?
Form controls are implemented in XXE using a special technique allowing
to efficiently have dozen of thousands control per document view.
Therefore we don't see how we could make "background-color,transparent"
work.
However "background-color,inherit" works OK if there is a
background-color to be inherited.
In other words, you may need to add a number of
"background-color:inherit" to the ``ancestor elements'' of a form
control if you want "background-color,inherit" to work for this form
control.
Example demo/form-sampler.xml. Excerpts from
demo/form-sampler/form-sampler.css
---
integer1 {
content: text-field(attribute, value,
columns, 10
background-color, inherit);
}
---
will *not* work.
while (text-field integer1 is contained in a para):
---
para {
background-color: inherit;
}
integer1 {
content: text-field(attribute, value,
columns, 10,
background-color, inherit);
background-color: inherit;
}
---
works OK.
Or simpler, in the case of form-sampler.xml:
---
para {
background-color: inherit;
}
integer1 {
content: text-field(attribute, value,
columns, 10);
background-color: inherit;
}
---
also works OK.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support