On 2012-11-05, Boris Kheyfets wrote:
After the Gmane interface to sphinx-devel works again, I re-post my
answer:
> Doesn't work.
* Don't nest the "to-be classified" object into the "class" directive. See
http://docutils.sourceforge.net/docs/ref/rst/directives.html#class
* Remember that the class argument is set to the list. Style list elements
that are children of the "classified" list:
.. raw:: html
<style>
ul.dialog {
list-style: none;
margin-left: 0;
padding-left: 0;
}
ul.dialog li {
padding-left: 1em;
text-indent: -1em;
ul.dialog li:before {
display: inline-block;
text-align: right;
vertical-align: top;
content: "–";
padding-right: 7px;
</style>
.. class:: dialog
* foo
* bar
* baz
Works for me (kind of). Sorting out the right margins and padding is left as
exercise for the reader. I did something similar when re-styling ordered
lists in the html4css2.css stylesheet of the html-strict writer (in the
sandbox).
Günter