sections with code are h1,h2,h3,h4,h5,h6 contained in a div with class
article containing a code tag.
assuming you want them styled as h1,h2,h3,h4,h5,h6 with no changes in style
in respect of other h1,h2,h3,h4,h5,h6 the simplest thing is
.article h1 code, .article h2 code, .article h3 code, .article h4 code,
.article
h5 code, .article h6 code {
display: block;
color : #333333;
border: 0px;
font-size: inherit;
background: transparent;
}
On Monday, September 3, 2012 11:37:12 PM UTC+2, Massimo Di Pierro wrote:
>
> The book uses the default web2py style with bootstrap. The section titles,
> if they contain code are not rendered properly. Could use some help
> improving the css.
>
> massimo
>
> On Saturday, 1 September 2012 12:00:49 UTC-5, Massimo Di Pierro wrote:
>>
>> The web2py book app has been rewritten
>>
>> http://www.web2py.com/book
>>
>> and the source of the app and the book itself is now on github
>>
>> https://github.com/mdipierro/web2py-book/tree/master/sources
>>
>> Hopefully this will make it easier to keep it updated. You can just send
>> me patches. You can also try run it yourself and see how it looks. It is no
>> more db based. it is file based. The syntax is markmin as documented in the
>> bok itself.
>>
>> Massimo
>>
>>
>>
>>
>>
--