Doesn't work. 

Below are excerpts from rst, css and the resulting html.

rst:

.. _test:

######
 test
######

.. class:: dialog

   * foo
   * bar
   * baz

.. class:: dialog
..

   * foo
   * bar
   * baz


css:


ul.dialog {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
li.dialog {
    padding-left: 1em;
    text-indent: -1em;
}
li.dialog:before {
    content: "–";
    padding-right: 7px;
}

resulting html:

<div class="section" id="test">
  <span id="id1"></span><h1>test<a class="headerlink" href="#test" 
title="Permalink to this headline">¶</a></h1>
  <dl class="class">
    <dt id="dialog">
      <em class="property">class </em><tt class="descname">dialog</tt><a 
class="headerlink" href="#dialog" title="Permalink to this 
definition">¶</a></dt>
    <dd><ul class="simple">
        <li>foo</li>
        <li>bar</li>
        <li>baz</li>
      </ul>
  </dd></dl>

  <dl class="class">
    <dt>
      <em class="property">class </em><tt class="descname">dialog</tt></dt>
    <dd></dd></dl>

  <blockquote>
    <div><ul class="simple">
        <li>foo</li>
        <li>bar</li>
        <li>baz</li>
      </ul>
  </div></blockquote>
</div>






On Monday, October 29, 2012 12:09:14 AM UTC+4, Guenter Milde wrote:
>
> On 2012-10-28, Boris Kheyfets wrote: 
>
> > [-- Type: text/plain, Encoding: quoted-printable --] 
>
> > How do I use custom bullet char? 
>
> > Is there a way I can give a bullet list a class -- so to assign "–" char 
> as 
> > a bullet char for a given list (and have the default bullets in other 
> > lists)? 
>
> > I need it to cite dialogs: 
>
> > -- The next time I tell You that I saw something -- You believe me! 
> > -- Oh, relax -- now that we saw Dracula, the Wolfman and a Monster -- 
> > there's nobody to fright us anymore. *(and the Invisible man in the 
> rostrum 
>
> You can use the reSt `class`_ directive. In Sphinx, "class" may be 
> overwritten by another directive (for documenting classes in OO programms) 
> and you must use the (somewhat misleading) "cssclass" alias. 
>
> .. _class: 
> http://docutils.sourceforge.net/docs/ref/rst/directives.html#class 
>
> example:: 
>
>   .. class:: dialogue 
>
>   - Good morning. 
>   - Hm. 
>
> Günter   
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.


Reply via email to