Custom list styling

Oxygen general issues.
xsaero00
Posts: 58
Joined: Sat Aug 01, 2009 12:57 am

Custom list styling

Post 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>
Radu
Posts: 9048
Joined: Fri Jul 09, 2004 5:18 pm

Re: Custom list styling

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
xsaero00
Posts: 58
Joined: Sat Aug 01, 2009 12:57 am

Re: Custom list styling

Post by xsaero00 »

OK. CSS3 hyphen implementation would be preferred.
Radu
Posts: 9048
Joined: Fri Jul 09, 2004 5:18 pm

Re: Custom list styling

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
xsaero00
Posts: 58
Joined: Sat Aug 01, 2009 12:57 am

Re: Custom list styling

Post by xsaero00 »

Thanks for great news.
Post Reply