WordPress.org

Make WordPress Core

Changeset 21955


Ignore:
Timestamp:
09/23/2012 05:42:46 PM (8 years ago)
Author:
nacin
Message:

Better alignment in the ustom fields metabox. props SergeyBiryukov, ocean90, fixes #21847.

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin-rtl.css

    r21894 r21955  
    884884------------------------------------------------------------------------------*/
    885885
    886 #postcustomstuff table input,
    887 #postcustomstuff table select,
    888 #postcustomstuff table textarea {
    889     margin: 8px 8px 8px 0;
    890 }
     886/* No RTL for now, this space intentionally left blank */
    891887
    892888/*------------------------------------------------------------------------------
  • trunk/wp-admin/css/wp-admin.css

    r21948 r21955  
    31673167------------------------------------------------------------------------------*/
    31683168
    3169 #postcustomstuff .updatemeta,
    3170 #postcustomstuff .deletemeta {
    3171     margin: auto;
    3172 }
    3173 
    31743169#postcustomstuff thead th {
    31753170    padding: 5px 8px 8px;
     
    31793174    border: 0 none;
    31803175    float: none;
    3181     padding: 0 0 8px 8px;
     3176    padding: 0 8px 8px;
    31823177}
    31833178
    31843179#side-sortables #postcustom #postcustomstuff .submit {
    3185     padding: 0 5px;
    3186 }
    3187 
    3188 #side-sortables #postcustom #postcustomstuff td.left input {
    3189     margin: 3px 3px 0;
     3180    margin: 0;
     3181    padding: 0;
    31903182}
    31913183
    31923184#side-sortables #postcustom #postcustomstuff #the-list textarea {
    31933185    height: 85px;
    3194     margin: 3px;
     3186}
     3187
     3188#side-sortables #postcustom #postcustomstuff td.left input,
     3189#side-sortables #postcustom #postcustomstuff td.left select,
     3190#side-sortables #postcustomstuff #newmetaleft a {
     3191    margin: 3px 3px 0;
    31953192}
    31963193
     
    32033200}
    32043201
     3202#postcustomstuff tr {
     3203    vertical-align: top;
     3204}
     3205
    32053206#postcustomstuff table input,
    32063207#postcustomstuff table select,
    32073208#postcustomstuff table textarea {
    3208     width: 95%;
    3209     margin: 8px 0 8px 8px;
     3209    width: 96%;
     3210    margin: 8px;
     3211}
     3212
     3213#side-sortables #postcustomstuff table input,
     3214#side-sortables #postcustomstuff table select,
     3215#side-sortables #postcustomstuff table textarea {
     3216    margin: 3px;
    32103217}
    32113218
     
    32153222}
    32163223
    3217 #postcustomstuff .submit input,
    3218 #postcustomstuff table #newmeta-submit {
     3224#postcustomstuff .submit input {
     3225    margin: 0;
    32193226    width: auto;
    32203227}
    32213228
    3222 #postcustomstuff #newmetaleft {
    3223     vertical-align: top;
    3224 }
    3225 
    3226 #postcustomstuff #newmetaleft a {
    3227     padding: 0 10px;
     3229#postcustomstuff #newmetaleft a {   
     3230    display: inline-block;
     3231    margin: 0 8px 8px;
    32283232    text-decoration: none;
    32293233}
  • trunk/wp-admin/includes/template.php

    r21944 r21955  
    493493
    494494    $r .= "\n\t\t<div class='submit'>";
    495     $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta", "deletemeta[{$entry['meta_id']}]", false );
     495    $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta small", "deletemeta[{$entry['meta_id']}]", false );
    496496    $r .= "\n\t\t";
    497     $r .= get_submit_button( __( 'Update' ), "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce updatemeta" , "meta-{$entry['meta_id']}-submit", false );
     497    $r .= get_submit_button( __( 'Update' ), "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce updatemeta small" , "meta-{$entry['meta_id']}-submit", false );
    498498    $r .= "</div>";
    499499    $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
     
    555555</tr>
    556556
    557 <tr><td colspan="2" class="submit">
     557<tr><td colspan="2">
     558<div class="submit">
    558559<?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta secondary', 'addmeta', false, array( 'id' => 'newmeta-submit' ) ); ?>
     560</div>
    559561<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
    560562</td></tr>
Note: See TracChangeset for help on using the changeset viewer.