On Oct 19, 2:56 pm, Guenter Milde <mi...@users.berlios.de> wrote:
> > p.precaption.rubric + div > pre
> > as a selector for the pre, but I don't believe that's supported.
>
> Why don't you try it? It works here (Midori and Firefox).
>

I did, and it didn't work. Perhaps it's conflicting with some other
rule - I'll investigate further.

> How about setting the <pre> margin to zero it it is in a
> highlight-python div:
>
> div.highlight-python > pre {
>   margin: 0px 3em;
>
> }

That'll work, but it's not neat. If I have 5 languages in my document,
I've got to repeat this for each of the highlight-[lang] divs. That's
not DRY!

>
> p.precaption.rubric, p.postcaption.rubric {
>   color: black;
>   margin-left: 3em;
>   font-size: inherit;
>   text-align: left;
>   /*background-color: lightblue;*/}
>
> p.postcaption.rubric { margin-top: 0px; }
> p.precaption.rubric { margin-bottom: 0px; }
>
> div.highlight-python {
>   background-color: yellow;}  
>
> p.precaption.rubric + div > pre {
>   /* background-color: green; */
>   margin: 0px 3em;
>
> }
>

I'll copy these rules into my .css file, and have a play with them.

Thanks for taking so much time over this, Günter. It's much
appreciated!

Regards,

Vinay Sajip

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@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.

Reply via email to