On the other hand, maybe we could make it so web2py.css doesn't prevent 
usage of standard Bootstrap 
classes: 
https://groups.google.com/d/msg/web2py-developers/WaHw-83DT1w/zbs2fh-tWRoJ

Anthony

On Saturday, June 8, 2013 9:48:50 AM UTC-4, Niphlod wrote:
>
> any css rule is hardly a bug. it's just the css included in the 
> scaffolding app. you can use your own or override it with your css, making 
> sure that is appended AFTER web2py.css.
>
> On Friday, June 7, 2013 10:09:33 PM UTC+2, André Kablu wrote:
>>
>> found, in web2py.css there is a code:
>>
>> input[type="text"], input[type="password"], select {
>>     margin-right: 5px;
>>     width: 300px;
>> }
>>
>>
>> now the question is:
>> if we want to customize fields size do we need to remove this from 
>> web2py.css. Is it a bug or the correct behavior of web2py.css?
>>
>> Thanks!
>>
>>
>>
>> Em sexta-feira, 7 de junho de 2013 17h02min25s UTC-3, André Kablu 
>> escreveu:
>>>
>>> one more information...
>>> if I put on my html file a html code like this:
>>> <input id="test" class="input-small" type="text" value="" name="test">
>>>
>>> it also does not change the css effect to the correct class "input-small"
>>>
>>>
>>> Em sexta-feira, 7 de junho de 2013 16h51min36s UTC-3, André Kablu 
>>> escreveu:
>>>>
>>>> Hi all,
>>>>
>>>> I am trying to change a class of a field using form.element on my 
>>>> user.html view:
>>>>
>>>> {{=form.custom.begin}}
>>>> Name: {{
>>>>       form.element('input',_name='first_name')['_class']='input-medium'
>>>>       =form.custom.widget.first_name
>>>> }}
>>>> {{=form.custom.end}}
>>>>
>>>>
>>>> It changes the HTML on the source code:
>>>> Name:
>>>> <input id="auth_user_first_name" class="input-small" type="text" 
>>>> value="" name="first_name">
>>>>
>>>> but does not change the page.
>>>>
>>>> I already tried to remove all classes setting _class to '', and then 
>>>> using _size to change the size of the field. Nothing happen too... 
>>>>
>>>> seems like the web2py default CSS is changing the input{text} css 
>>>> patterns and nothing we can do to change field class properties
>>>>
>>>> Any ideas?
>>>>
>>>> Thank you very much!
>>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to