Make WordPress Core

Ticket #19701: 19701.patch

File 19701.patch, 1.7 KB (added by azaozz, 12 years ago)

Replace the button(s) background images with a gradient

  • wp-includes/functions.php

     
    21762176                        -moz-box-sizing: content-box;
    21772177                        -webkit-box-sizing: content-box;
    21782178                        box-sizing: content-box;
     2179                        background-color: #f5f5f5;
     2180                        background-image: -ms-linear-gradient(top, #ffffff, #f2f2f2);
     2181                        background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
     2182                        background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
     2183                        background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f2f2f2));
     2184                        background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
     2185                        background-image: linear-gradient(top, #ffffff, #f2f2f2);
    21792186                }
    21802187
    21812188                .button:hover {
     
    21832190                        border-color: #666;
    21842191                }
    21852192
    2186                 .button {
    2187                         background: #f2f2f2 url(<?php echo wp_guess_url(); ?>/wp-admin/images/white-grad.png) repeat-x scroll left top;
     2193                .button:active {
     2194                        background-image: -ms-linear-gradient(top, #f2f2f2, #ffffff);
     2195                        background-image: -moz-linear-gradient(top, #f2f2f2, #ffffff);
     2196                        background-image: -o-linear-gradient(top, #f2f2f2, #ffffff);
     2197                        background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#ffffff));
     2198                        background-image: -webkit-linear-gradient(top, #f2f2f2, #ffffff);
     2199                        background-image: linear-gradient(top, #f2f2f2, #ffffff);
    21882200                }
    21892201
    2190                 .button:active {
    2191                         background: #eee url(<?php echo wp_guess_url(); ?>/wp-admin/images/white-grad-active.png) repeat-x scroll left top;
    2192                 }
    21932202                <?php if ( 'rtl' == $text_direction ) : ?>
    21942203                body { font-family: Tahoma, Arial; }
    21952204                <?php endif; ?>