I think you are running into a Web2py feature resulting in your 
custom background-color being overruled/overwritten.

In /static/js/web2py.js:
/* javascript for PasswordWidget*/
$('*input[type=password][data-w2p_entropy]*', target).each(function () {
web2py.validate_entropy($(this));
});

and:

...
    validate_entropy: function (myfield, req_entropy) {
      if(myfield.data('w2p_entropy') != undefined) req_entropy = 
myfield.data('w2p_entropy');
      var validator = function () {
        var v = (web2py.calc_entropy(myfield.val()) || 0) / req_entropy;
        var r = 0,
          g = 0,
          b = 0,
          rs = function (x) {
            return Math.round(x * 15).toString(16)
          };
        if(v <= 0.5) {
          r = 1.0;
          g = 2.0 * v;
        } else {
          r = (1.0 - 2.0 * (Math.max(v, 0) - 0.5));
          g = 1.0;
        }
        var color = '#' + rs(r) + rs(g) + rs(b);
        *myfield.css('background-color', color);*
        entropy_callback = myfield.data('entropy_callback');
        if(entropy_callback) entropy_callback(v);
      }
      if(!myfield.hasClass('entropy_check')) myfield.on('keyup', 
validator).on('keydown', validator).addClass('entropy_check');
    },
...

For this specific input field you could add some additional CSS that should 
overrule the background-color by using !important:

#no_table_new_password { background-color: #FFFFFF !important; }




On Wednesday, December 11, 2013 10:50:16 AM UTC+1, Annet wrote:
>
> Where do I change the setting of the background-color of the new_password 
> field?
>
> <input type="password" value="" placeholder="" name="new_password" 
> id="no_table_new_password" data-w2p_entropy="null" class="password 
> entropy_check" style="background-color: rgb(187, 255, 0);">
>
> In Firebug it is an element.style {} property that overrides any setting I 
> do in an external css.
>
>
> Kind regards,
>
> Annet
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to