Hi all, almost always i use self-defined admonitions, i.e., rather than
.. tip:: Linux users can.... , i find myself using .. admonition:: Linux users You can... Still, I don't want my admonitions to all have the same color. And I revolt at the thought of labeling a hint as a danger just to get the color I want. Plus, maybe on one page it helps the reader to color all Linux in one, all Windows in another, and on a second page, to color all OS-related stuff in the same color. So my next step was to pass a class option to the admonition: .. admonition:: Linux users... :class: my_yellow You can... Thus I might in my theme-css_t file now list all my_xyz colors I would ever want to use in admonitions and "translate" them to html colors. This works, but is a bit tedious. So, since the css_t seems to be processed by Jinja too, is there a way one can use Jinja to "catch" the admonition class option, see if it contains the substring my_hex_color_ , scrub that part and use the remainder in the css styling? Cheers, Paul -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.