[Live-demo] Re: Fwd: RST & tips in margins?

Cameron Shorter cameron.shorter at gmail.com
Tue Jul 12 13:05:37 PDT 2011


Frank, as mentioned, I like the way you have been able to adjust the CSS 
such that "notes" are indented differently to the rest of the text.

I'm forwarding to the osgeo-live list (with your permission) to see if 
others have any ideas on how we should format our Quickstarts.


On 13/07/11 00:09, Frank Gasdorf wrote:
> Cameron,
>
> I was playing a bit with css and can confirm, that you could 
> change margin stuff in the div.admonition in general or div.tip 
> /div.note etc. if you like special effects for these.
>
> div.admonition, div.warning {
>     font-size: 0.9em;
> margin-left:10%;
> margin-right:auto;
>     /* margin: 1em 0 1em 0; */
>     border: 1px solid #86989B;
>     background-color: #f7f7f7;
>     padding: 0;
> }
>
> div.tip {
> background-color: #ffc3c3;
> }
>
> leads into something like shown in the attachment.
> Cheers, Frank
>
>
> ---------- Forwarded message ----------
> From: *Frank Gasdorf* <fgdrf at users.sourceforge.net 
> <mailto:fgdrf at users.sourceforge.net>>
> Date: 2011/7/12
> Subject: Re: RST & tips in margins?
> To: Cameron Shorter <cameron.shorter at gmail.com 
> <mailto:cameron.shorter at gmail.com>>
>
>
> Cameron,
> please have a look at the following css style taken from the 
> sphinxdoc.css:
>
> div.admonition, div.warning {
>     font-size: 0.9em;
>     margin: 1em 0 1em 0;
>     border: 1px solid #86989B;
>     background-color: #f7f7f7;
>     padding: 0;
> }
>
> More Details about the different kinds of admonition you can find 
> here: http://sphinx.pocoo.org/rest.html?highlight=admonition
>
> I'm not very familiar with the css styling, but where to look for 
> proberly helps to get started. I guess you could add a div.note or 
> div.tip to change styling for each kind of the admonition class elements.
>
> Hopefully that helps a bit ..
> Cheers, Frank
>
>
>
>
> 2011/7/12 Cameron Shorter <cameron.shorter at gmail.com 
> <mailto:cameron.shorter at gmail.com>>
>
>     margin
>
>
>


-- 
Cameron Shorter
Geospatial Director
Tel: +61 (0)2 8570 5050
Mob: +61 (0)419 142 254

Think Globally, Fix Locally
Geospatial Solutions enhanced with Open Standards and Open Source
http://www.lisasoft.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/osgeolive/attachments/20110713/02cc1530/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: css-osgeo-live-test.png
Type: image/png
Size: 32358 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/osgeolive/attachments/20110713/02cc1530/attachment.png>


More information about the Osgeolive mailing list