Page 1 of 1

Custom list styling

Posted: Tue Sep 20, 2011 2:30 am
by xsaero00
In my docbook framework I want to be able to use custom list style character: dash. It is not a part of css standard so it has to be done with "content". I can do that but I cannot keep the text after first line aligned with top line. Usually on the web I would do it with negative text-indent but it does not seem to work for in oXygen. How should I go about this issue?

Sample files below.

Code: Select all


itemizedlist[mark="dash"] > listitem > *:FIRST-CHILD:BEFORE
{
content: '- ';
}

itemizedlist[mark="dash"] > listitem > *
{
text-indent: -1.4em;
}

itemizedlist[mark="dash"] > listitem
{
list-style-type: none;
}

itemizedlist[mark="dash"]
{
margin-left:1.4em;
}

Code: Select all


<itemizedlist mark="dash">
<listitem>
<para>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud</para>
</listitem>
<listitem>
<para>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud</para>
</listitem>
</itemizedlist>

Re: Custom list styling

Posted: Tue Sep 20, 2011 11:01 am
by Radu
Hi Mike,

Actually CSS 3 seems to have added a lot of list-style-type values like hyphen. Unfortunately we do not yet support them in the Author page.

Also, we do not support negative indent, we've had request but with our current architecture it's hard to implement and it will not be done in the short term.

Maybe we can add support for displaying more CSS3 list style type values.
In the meantime I do not have a workaround for you.

Regards,
Radu

Re: Custom list styling

Posted: Tue Sep 20, 2011 6:07 pm
by xsaero00
OK. CSS3 hyphen implementation would be preferred.

Re: Custom list styling

Posted: Fri Oct 07, 2011 11:49 am
by Radu
Hi Mike,

Oxygen 13.1 which should be released in a few weeks will support the additional list style types of:

Code: Select all

'box', 'diamond', 'check' and 'hyphen'
Regards,
Radu

Re: Custom list styling

Posted: Fri Oct 07, 2011 6:16 pm
by xsaero00
Thanks for great news.