Make WordPress Core

Ticket #21598: 21598.11.diff

File 21598.11.diff, 19.6 KB (added by lessbloat, 12 years ago)
  • wp-admin/includes/plugin-install.php

     
    130130                <?php endif; ?>
    131131                <input type="search" name="s" value="<?php echo esc_attr($term) ?>" autofocus="autofocus" />
    132132                <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
    133                 <?php submit_button( __( 'Search Plugins' ), 'small', 'plugin-search-input', false ); ?>
     133                <?php submit_button( __( 'Search Plugins' ), 'button', 'plugin-search-input', false ); ?>
    134134        </form><?php
    135135}
    136136
  • wp-admin/includes/dashboard.php

     
    439439        <form action="<?php echo network_admin_url('users.php'); ?>" method="get">
    440440                <p>
    441441                        <input type="search" name="s" value="" size="30" autocomplete="off" />
    442                         <?php submit_button( __( 'Search Users' ), 'small', 'submit', false, array( 'id' => 'submit_users' ) ); ?>
     442                        <?php submit_button( __( 'Search Users' ), 'button', 'submit', false, array( 'id' => 'submit_users' ) ); ?>
    443443                </p>
    444444        </form>
    445445
    446446        <form action="<?php echo network_admin_url('sites.php'); ?>" method="get">
    447447                <p>
    448448                        <input type="search" name="s" value="" size="30" autocomplete="off" />
    449                         <?php submit_button( __( 'Search Sites' ), 'small', 'submit', false, array( 'id' => 'submit_sites' ) ); ?>
     449                        <?php submit_button( __( 'Search Sites' ), 'button', 'submit', false, array( 'id' => 'submit_sites' ) ); ?>
    450450                </p>
    451451        </form>
    452452<?php
  • wp-admin/includes/class-wp-list-table.php

     
    218218<p class="search-box">
    219219        <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>
    220220        <input type="search" id="<?php echo $input_id ?>" name="s" value="<?php _admin_search_query(); ?>" />
    221         <?php submit_button( $text, 'small', false, false, array('id' => 'search-submit') ); ?>
     221        <?php submit_button( $text, 'button', false, false, array('id' => 'search-submit') ); ?>
    222222</p>
    223223<?php
    224224        }
  • wp-admin/includes/meta-boxes.php

     
    206206        if ( $can_publish ) :
    207207                if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?>
    208208                <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" />
    209                 <?php submit_button( __( 'Schedule' ), 'primary', 'publish', false, array( 'accesskey' => 'p' ) ); ?>
     209                <?php submit_button( __( 'Schedule' ), 'primary button-medium', 'publish', false, array( 'accesskey' => 'p' ) ); ?>
    210210<?php   else : ?>
    211211                <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" />
    212                 <?php submit_button( __( 'Publish' ), 'primary', 'publish', false, array( 'accesskey' => 'p' ) ); ?>
     212                <?php submit_button( __( 'Publish' ), 'primary button-medium', 'publish', false, array( 'accesskey' => 'p' ) ); ?>
    213213<?php   endif;
    214214        else : ?>
    215215                <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Submit for Review') ?>" />
    216                 <?php submit_button( __( 'Submit for Review' ), 'primary', 'publish', false, array( 'accesskey' => 'p' ) ); ?>
     216                <?php submit_button( __( 'Submit for Review' ), 'primary button-medium', 'publish', false, array( 'accesskey' => 'p' ) ); ?>
    217217<?php
    218218        endif;
    219219} else { ?>
    220220                <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update') ?>" />
    221                 <input name="save" type="submit" class="button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Update') ?>" />
     221                <input name="save" type="submit" class="button-primary button-medium" id="publish" accesskey="p" value="<?php esc_attr_e('Update') ?>" />
    222222<?php
    223223} ?>
    224224</div>
     
    286286                <label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
    287287                <div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div>
    288288                <p><input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
    289                 <input type="button" class="button button-tiny tagadd" value="<?php esc_attr_e('Add'); ?>" /></p>
     289                <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" /></p>
    290290        </div>
    291291        <p class="howto"><?php echo esc_attr( $taxonomy->labels->separate_items_with_commas ); ?></p>
    292292        <?php endif; ?>
     
    636636
    637637<div id="publishing-action">
    638638<?php if ( !empty($link->link_id) ) { ?>
    639         <input name="save" type="submit" class="button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Update Link') ?>" />
     639        <input name="save" type="submit" class="button-medium button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Update Link') ?>" />
    640640<?php } else { ?>
    641         <input name="save" type="submit" class="button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Add Link') ?>" />
     641        <input name="save" type="submit" class="button-medium button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Add Link') ?>" />
    642642<?php } ?>
    643643</div>
    644644<div class="clear"></div>
  • wp-admin/includes/widgets.php

     
    212212                </div>
    213213                <div class="alignright<?php if ( 'noform' === $has_form ) echo ' widget-control-noform'; ?>">
    214214                <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-feedback" title="" alt="" />
    215                 <?php submit_button( __( 'Save' ), 'button-primary widget-control-save', 'savewidget', false, array( 'id' => 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?>
     215                <?php submit_button( __( 'Save' ), 'button button-primary widget-control-save', 'savewidget', false, array( 'id' => 'widget-' . esc_attr( $id_format ) . '-savewidget' ) ); ?>
    216216                </div>
    217217                <br class="clear" />
    218218        </div>
  • wp-admin/includes/nav-menu.php

     
    693693                        <p class="quick-search-wrap">
    694694                                <input type="search" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" />
    695695                                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    696                                 <?php submit_button( __( 'Search' ), 'quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?>
     696                                <?php submit_button( __( 'Search' ), 'button-tiny quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?>
    697697                        </p>
    698698
    699699                        <ul id="<?php echo $post_type_name; ?>-search-checklist" class="list:<?php echo $post_type_name?> categorychecklist form-no-clear">
     
    924924                        <p class="quick-search-wrap">
    925925                                <input type="search" class="quick-search input-with-default-title" title="<?php esc_attr_e('Search'); ?>" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" />
    926926                                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    927                                 <?php submit_button( __( 'Search' ), 'quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>
     927                                <?php submit_button( __( 'Search' ), 'button-tiny quick-search-submit button-secondary hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>
    928928                        </p>
    929929
    930930                        <ul id="<?php echo $taxonomy_name; ?>-search-checklist" class="list:<?php echo $taxonomy_name?> categorychecklist form-no-clear">
  • wp-admin/custom-header.php

     
    558558                <input type="file" id="upload" name="import" />
    559559                <input type="hidden" name="action" value="save" />
    560560                <?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ); ?>
    561                 <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?>
     561                <?php submit_button( __( 'Upload' ), 'tiny', 'submit', false ); ?>
    562562        </p>
    563563        <?php
    564564                $image_library_url = get_upload_iframe_src( 'image', null, 'library' );
  • wp-admin/css/colors-fresh.css

     
    378378.submit input,
    379379input[type=button],
    380380input[type=submit] {
    381         background: #ececec;
     381        background: #f3f3f3;
    382382        background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
    383383        background-image: -webkit-linear-gradient(top, #fff, #eee);
    384384        background-image:    -moz-linear-gradient(top, #fff, #eee);
    385385        background-image:      -o-linear-gradient(top, #fff, #eee);
    386386        background-image:   linear-gradient(to bottom, #fff, #eee);
    387387        border-color: #ccc;
    388         -webkit-box-shadow: inset 0 0 1px 1px rgba(255,255,255, 0.9);
    389         box-shadow: inset 0 0 1px 1px rgba(255,255,255, 0.9);
     388        -webkit-box-shadow: inset 0 0 1px 2px rgba(255,255,255, 0.9);
     389        box-shadow: inset 0 0 1px 2px rgba(255,255,255, 0.9);
    390390        color: #464646;
    391391        text-shadow: 1px 1px 0 #fff;
    392392}
     
    407407input[type=button].focus,
    408408input[type=button]:focus,
    409409input[type=submit]:focus {
    410         background: #ececec;
    411         background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
    412         background-image: -webkit-linear-gradient(top, #fff, #eee);
    413         background-image:    -moz-linear-gradient(top, #fff, #eee);
    414         background-image:      -o-linear-gradient(top, #fff, #eee);
    415         background-image:   linear-gradient(to bottom, #fff, #eee);
     410        background: #f3f3f3;
     411        background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3));
     412        background-image: -webkit-linear-gradient(top, #fff, #f3f3f3);
     413        background-image:    -moz-linear-gradient(top, #fff, #f3f3f3);
     414        background-image:      -o-linear-gradient(top, #fff, #f3f3f3);
     415        background-image:   linear-gradient(to bottom, #fff, #f3f3f3);
    416416        border-color: #bbb;
    417         -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,.1);
    418         box-shadow: 0px 1px 1px rgba(0,0,0,.1);
     417        -webkit-box-shadow: inset 0 0 1px 2px #fff, 0px 1px 1px rgba(0,0,0,.1);
     418        box-shadow: inset 0 0 1px 2px #fff, 0px 1px 1px rgba(0,0,0,.1);
    419419        color: #000;
    420420}
    421421
     422.button.focus,
     423.button:focus,
     424.button-secondary.focus,
     425.button-secondary:focus,
     426.submit input.focus,
     427.submit input:focus,
     428input[type=button].focus,
     429input[type=button]:focus,
     430input[type=submit]:focus {
     431        border-color: #999;
     432        -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.2);
     433        box-shadow: 1px 1px 1px rgba(0,0,0,.2);
     434}
     435
    422436.button.active,
    423437.button:active,
    424 .small.active,
    425 .small:active,
    426438.button-secondary.active,
    427439.button-secondary:active,
    428440.submit input:active,
     
    441453        box-shadow: inset 1px 1px 0 rgba(50,50,50,0.1);
    442454}
    443455
    444 .button.focus,
    445 .button:focus,
    446 .button-secondary.focus,
    447 .button-secondary:focus,
    448 .submit input.focus,
    449 .submit input:focus,
    450 input[type=button].focus,
    451 input[type=button]:focus,
    452 input[type=submit]:focus {
    453         border-color: #aaa;
    454 }
    455 
    456456input.button-primary,
    457457button.button-primary,
    458458a.button-primary {
     
    492492        text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
    493493}
    494494
     495input.button-primary.focus,
     496input.button-primary:focus,
     497button.button-primary:focus,
     498a.button-primary:focus {
     499        border-color: #0e3950;
     500        -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,.4);
     501        box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,.4);
     502}
     503
    495504input.button-primary.active,
    496505input.button-primary:active,
    497506button.button-primary:active,
     
    508517        box-shadow: inset 1px 1px 0 rgba(0,0,0,0.1);
    509518}
    510519
    511 input.button-primary.focus,
    512 input.button-primary:focus,
    513 button.button-primary:focus,
    514 a.button-primary:focus {
    515         border-color: #124560;
    516 }
    517 
    518520.button-disabled,
    519521.button[disabled],
    520522.button:disabled,
     
    536538        box-shadow:         none !important;
    537539}
    538540
     541.button-primary-disabled:hover,
     542.button-primary[disabled]:hover {
     543        text-shadow: none;
     544}
     545
    539546a:hover,
    540547a:active {
    541548        color: #d54e21;
  • wp-admin/css/wp-admin.css

     
    783783        display: inline-block;
    784784        text-decoration: none;
    785785        font-size: 12px;
    786         line-height: 15px;
     786        line-height: 17px;
     787        height: 15px;
    787788        margin: 0;
    788         padding: 0.5em 0.8em 0.4em;
     789        padding: 0.25em 0.8em 0.35em;
    789790        cursor: pointer;
    790791        border-width: 1px;
    791792        border-style: solid;
    792         -webkit-border-radius: 3px;
    793         border-radius: 3px;
     793        -webkit-border-radius: 4px;
     794        border-radius: 4px;
    794795        -webkit-box-sizing: content-box;
    795796        -moz-box-sizing:    content-box;
    796797        box-sizing:         content-box;
    797798        white-space: nowrap;
    798799}
    799800
    800 .button.button-small {
    801         padding: 3px .8em 2px;
     801.button.button-medium {
     802        padding: 0.4em 0.8em 0.5em;
    802803}
    803804
    804805.button.button-large {
    805806    font-size: 14px;
    806     padding: 0.6em 1em 0.5em;
     807    padding: 0.5em 1em 0.6em;
    807808}
    808809
    809810.button.button-tiny {
    810         padding: .2em .8em;
    811         font-size: 11px;
     811        padding: 0.15em 0.8em 0.17em;
    812812}
    813813
    814814#minor-publishing-actions input,
     
    843843#doaction,
    844844#doaction2,
    845845#post-query-submit {
    846         margin-right: 8px;
     846        margin: 1px 8px 0 0;
    847847}
    848848
    849849.tablenav .actions select {
     850        float: left;
     851        margin-right: 6px;
    850852        max-width: 200px;
    851853}
    852854
     
    894896        margin: 0;
    895897}
    896898
     899.search-box input[name="s"], #search-plugins input[name="s"], .tagsdiv .newtag {
     900        float: left;
     901        height: 2em;
     902        margin: 0 4px 0 0;
     903}
     904
    897905input[type="text"].ui-autocomplete-loading {
    898906        background: transparent url('../images/loading.gif') no-repeat right center;
    899907        visibility: visible;
     
    24822490}
    24832491
    24842492.tablenav .actions {
     2493        overflow: hidden;
    24852494        padding: 2px 8px 0 0;
    24862495}
    24872496
     
    58485857}
    58495858
    58505859#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit input {
    5851         margin: 0;
     5860        margin: 0 5px 0 0;
    58525861}
    58535862
    58545863#dashboard-widgets-wrap #dashboard-widgets .postbox form .submit #publish {
     
    61056114}
    61066115
    61076116#dashboard-widgets #dashboard_quick_press form p.submit #save-post {
    6108         margin: 0 1em 0 0;
     6117        margin: 0 0.7em 0 1px;
    61096118}
    61106119
    61116120#dashboard-widgets #dashboard_quick_press form p.submit #publish {
  • wp-admin/css/colors-classic.css

     
    387387.submit input,
    388388input[type=button],
    389389input[type=submit] {
    390         background: #ececec;
     390        background: #f3f3f3;
    391391        background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
    392392        background-image: -webkit-linear-gradient(top, #fff, #eee);
    393393        background-image:    -moz-linear-gradient(top, #fff, #eee);
    394394        background-image:      -o-linear-gradient(top, #fff, #eee);
    395395        background-image:   linear-gradient(to bottom, #fff, #eee);
    396396        border-color: #ccc;
    397         -webkit-box-shadow: inset 0 0 1px 1px rgba(255,255,255, 0.9);
    398         box-shadow: inset 0 0 1px 1px rgba(255,255,255, 0.9);
     397        -webkit-box-shadow: inset 0 0 1px 2px rgba(255,255,255, 0.9);
     398        box-shadow: inset 0 0 1px 2px rgba(255,255,255, 0.9);
    399399        color: #464646;
    400400        text-shadow: 1px 1px 0 #fff;
    401401}
     
    413413.button-secondary:focus,
    414414.submit input.focus,
    415415.submit input:focus,
     416input[type=button].focus,
    416417input[type=button]:focus,
    417 input[type=submit].focus,
    418418input[type=submit]:focus {
    419         background: #ececec;
    420         background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
    421         background-image: -webkit-linear-gradient(top, #fff, #eee);
    422         background-image:    -moz-linear-gradient(top, #fff, #eee);
    423         background-image:      -o-linear-gradient(top, #fff, #eee);
    424         background-image:   linear-gradient(to bottom, #fff, #eee);
     419        background: #f3f3f3;
     420        background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3));
     421        background-image: -webkit-linear-gradient(top, #fff, #f3f3f3);
     422        background-image:    -moz-linear-gradient(top, #fff, #f3f3f3);
     423        background-image:      -o-linear-gradient(top, #fff, #f3f3f3);
     424        background-image:   linear-gradient(to bottom, #fff, #f3f3f3);
    425425        border-color: #bbb;
    426         -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,.1);
    427         box-shadow: 0px 1px 1px rgba(0,0,0,.1);
     426        -webkit-box-shadow: inset 0 0 1px 2px #fff, 0px 1px 1px rgba(0,0,0,.1);
     427        box-shadow: inset 0 0 1px 2px #fff, 0px 1px 1px rgba(0,0,0,.1);
    428428        color: #000;
    429429}
    430430
     431.button.focus,
     432.button:focus,
     433.button-secondary.focus,
     434.button-secondary:focus,
     435.submit input.focus,
     436.submit input:focus,
     437input[type=button].focus,
     438input[type=button]:focus,
     439input[type=submit]:focus {
     440        border-color: #999;
     441        -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.2);
     442        box-shadow: 1px 1px 1px rgba(0,0,0,.2);
     443}
     444
    431445.button.active,
    432446.button:active,
    433447.button-secondary.active,
     
    448462        box-shadow: inset 1px 1px 0 rgba(50,50,50,0.1);
    449463}
    450464
    451 .button.focus,
    452 .button:focus,
    453 .button-secondary.focus,
    454 .button-secondary:focus,
    455 .submit input.focus,
    456 .submit input:focus,
    457 input[type=button].focus,
    458 input[type=submit]:focus {
    459         border-color: #aaa;
    460 }
    461 
    462465input.button-primary,
    463466button.button-primary,
    464467a.button-primary {
     
    498501        text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
    499502}
    500503
     504input.button-primary.focus,
     505input.button-primary:focus,
     506button.button-primary:focus,
     507a.button-primary:focus {
     508        border-color: #0e3950;
     509        -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,.4);
     510        box-shadow: inset 0 1px 0 rgba(120,200,230,0.6), 1px 1px 2px rgba(0,0,0,.4);
     511}
     512
    501513input.button-primary.active,
    502514input.button-primary:active,
    503515button.button-primary:active,
     
    514526        box-shadow: inset 1px 1px 0 rgba(0,0,0,0.1);
    515527}
    516528
    517 input.button-primary.focus,
    518 input.button-primary:focus,
    519 button.button-primary:focus,
    520 a.button-primary:focus {
    521         border-color: #124560;
    522 }
    523 
    524529.button-disabled,
    525530.button[disabled],
    526531.button:disabled,
     
    542547        box-shadow:         none !important;
    543548}
    544549
     550.button-primary-disabled:hover,
     551.button-primary[disabled]:hover {
     552        text-shadow: none;
     553}
     554
    545555a:hover,
    546556a:active {
    547557        color: #d54e21;
  • wp-admin/css/customize-controls.css

     
    157157
    158158#customize-header-actions .button-primary {
    159159        float: right;
    160         margin-top: 11px;
     160        margin-top: 10px;
    161161}
    162162
    163163#customize-header-actions img {
  • wp-admin/custom-background.php

     
    260260                <input type="file" id="upload" name="import" />
    261261                <input type="hidden" name="action" value="save" />
    262262                <?php wp_nonce_field( 'custom-background-upload', '_wpnonce-custom-background-upload' ); ?>
    263                 <?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?>
     263                <?php submit_button( __( 'Upload' ), 'tiny', 'submit', false ); ?>
    264264        </p>
    265265        <?php
    266266                $image_library_url = get_upload_iframe_src( 'image', null, 'library' );