Putting web2py.css at the top of this list fixes many things for me 
actually, in relation to bootstrap and forms.

The only problem left that I see is the div.error rule in web2py.css, it 
should be less specific so bootstrap or another css framework can override 
it properly.

Michael

On Monday, August 20, 2012 11:12:28 PM UTC-7, villas wrote:
>
> web2py.css includes styling for common html tags in addition to specific 
> web2py stuff.  
>
> The loading order in current layout.html is below.
>
> {{
>   response.files.append(URL('static','css/bootstrap.min.css'))
>   response.files.append(URL('static','css/bootstrap-responsive.min.css'))
>   response.files.append(URL('static','css/web2py.css'))
>   response.files.append(URL('static','css/bootswatch.css'))
>   }}
>
> Perhaps we should be loading web2py.css first?  Did you try that?
>
>
>
> On Tuesday, August 21, 2012 2:13:12 AM UTC+1, Michael W wrote:
>>
>> By default web2py.css is pretty heavy-handed on form controls.  Would it 
>> be possible to restrict the form controls in web2py.css by class?  It might 
>> require setting a default class on all generated forms.  grid and smartgrid 
>> do this already, but using default SQLFORM() does not set a default class 
>> on the form currently.  My thought is to change SQLFORM so it sets a 
>> default 'web2py_form' class which is what grid and smartgrid already do. I 
>> would then restrict all the form controls in web2py.css to this class. 
>>  This would make it much easier to use non-web2py css frameworks like 
>> bootstrap with forms.  Right now to get it working properly I have to 
>> comment/remove a lot from web2py.css to get it using bootstrap fully in my 
>> forms, even with the new bootstrap formstyle that's in trunk.
>>
>> Would this break anything?
>>
>> Michael
>>
>

-- 



Reply via email to