Ticket #13649: admin-disabled-buttons.patch

File admin-disabled-buttons.patch, 1.1 KB (added by Sebastian Noack, 14 years ago)
  • django/django/contrib/admin/media/css/base.css

    diff --git a/django/django/contrib/admin/media/css/base.css b/django/django/contrib/admin/media/css/base.css
    index 7299c95..db4e00e 100644
    a b input[type=text], input[type=password], textarea, select, .vTextField {  
    376376    background-position: top;
    377377}
    378378
     379.button[disabled], input[type=submit][disabled], input[type=button][disabled] {
     380        background-image: url(../img/admin/nav-bg.gif);
     381        background-position: bottom;
     382        opacity: 0.4;
     383}
     384
    379385.button.default, input[type=submit].default, .submit-row input.default {
    380386    border: 2px solid #5b80b2;
    381387    background: #7CA0C7 url(../img/admin/default-bg.gif) bottom repeat-x;
    input[type=text], input[type=password], textarea, select, .vTextField {  
    389395    background-position: top;
    390396}
    391397
     398.button[disabled].default, input[type=submit][disabled].default, input[type=button][disabled].default {
     399        background-image: url(../img/admin/default-bg.gif);
     400        background-position: bottom;
     401        opacity: 0.4;
     402}
     403
     404
    392405/* MODULES */
    393406
    394407.module {
Back to Top