Re: How do you set the background color for a property in a dita properties list.
Hussein Shafie <hussein <at> xmlmind.com>
2008-06-04 08:57:42 GMT
Tyrin Avery wrote:
>
> I have text that I want to flag for filtering in dita, and I want to be
> able to see that visually. I used
>
> /*
> ---------------------------------------------------------------------------
>
> Shade programmer audience
>
> ---------------------------------------------------------------------------
> */
>
>
>
> <at> media XMLmind-XML-Editor {
>
> *[audience="programmer"] {
>
> background-color: #FFFEDD;
>
> }
>
> }
>
>
>
> Here’s a sample of the XML: (this is for a DITA reference topic).
>
> <properties>
>
> <property>
>
> <proptype audience="programmer"><xref
>
>
> href="../../DataDictionary/DELIVERTO.dita">DELIVERTO</xref></proptype>
>
>
>
> <propvalue><uicontrol>Pickup By</uicontrol></propvalue>
>
>
>
> <propdesc>Displays the name of the person picking up the
>
> order.</propdesc>
>
> </property>
>
> </properties>
>
>
>
> To create the shading. This works great for text or proptype, propvalue,
> propdesc. However, for the parent element, property, it doesn’t work. So
> I can shade text or one cell, but not a whole row.
>
>
>
> What am I doing wrong?
Nothing at all.
The property element is styled using "display:table-row;". In XMLmind
XML Editor, a table row is just a logical container not directly
represented by any gadget on screen. This means that specifying a
background-color for it is useless...unless you force its child elements
to inherit this background-color.
We've made small changes in the DITA CSS of next release (3.8.1,
released today) to make this work.
One of these small changes is:
proptypehd,
propvaluehd,
propdeschd,
proptype,
propvalue,
propdesc {
display: table-cell;
margin-left: 0;
border: 1 solid #F0D0FF;
padding: 2px;
background-color: inherit; /*NEW in 3.8.1*/
}
--
XMLmind XML Editor Support List
xmleditor-support <at> xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support