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 -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sphinx-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
