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

git-svn-id: http://core.svn.wordpress.org/trunk@21955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-23 17:42:46 +00:00
parent b45c550376
commit 76bc5c7c21
3 changed files with 32 additions and 30 deletions

View File

@ -883,11 +883,7 @@ th.sorted a span {
11.1 - Custom Fields
------------------------------------------------------------------------------*/
#postcustomstuff table input,
#postcustomstuff table select,
#postcustomstuff table textarea {
margin: 8px 8px 8px 0;
}
/* No RTL for now, this space intentionally left blank */
/*------------------------------------------------------------------------------
11.2 - Post Revisions

View File

@ -3166,11 +3166,6 @@ td.plugin-title p {
11.1 - Custom Fields
------------------------------------------------------------------------------*/
#postcustomstuff .updatemeta,
#postcustomstuff .deletemeta {
margin: auto;
}
#postcustomstuff thead th {
padding: 5px 8px 8px;
}
@ -3178,20 +3173,22 @@ td.plugin-title p {
#postcustom #postcustomstuff .submit {
border: 0 none;
float: none;
padding: 0 0 8px 8px;
padding: 0 8px 8px;
}
#side-sortables #postcustom #postcustomstuff .submit {
padding: 0 5px;
}
#side-sortables #postcustom #postcustomstuff td.left input {
margin: 3px 3px 0;
margin: 0;
padding: 0;
}
#side-sortables #postcustom #postcustomstuff #the-list textarea {
height: 85px;
margin: 3px;
}
#side-sortables #postcustom #postcustomstuff td.left input,
#side-sortables #postcustom #postcustomstuff td.left select,
#side-sortables #postcustomstuff #newmetaleft a {
margin: 3px 3px 0;
}
#postcustomstuff table {
@ -3202,11 +3199,21 @@ td.plugin-title p {
border-spacing: 0;
}
#postcustomstuff tr {
vertical-align: top;
}
#postcustomstuff table input,
#postcustomstuff table select,
#postcustomstuff table textarea {
width: 95%;
margin: 8px 0 8px 8px;
width: 96%;
margin: 8px;
}
#side-sortables #postcustomstuff table input,
#side-sortables #postcustomstuff table select,
#side-sortables #postcustomstuff table textarea {
margin: 3px;
}
#postcustomstuff th.left,
@ -3214,17 +3221,14 @@ td.plugin-title p {
width: 38%;
}
#postcustomstuff .submit input,
#postcustomstuff table #newmeta-submit {
#postcustomstuff .submit input {
margin: 0;
width: auto;
}
#postcustomstuff #newmetaleft {
vertical-align: top;
}
#postcustomstuff #newmetaleft a {
padding: 0 10px;
display: inline-block;
margin: 0 8px 8px;
text-decoration: none;
}

View File

@ -492,9 +492,9 @@ function _list_meta_row( $entry, &$count ) {
$r .= "\n\t\t<td class='left'><label class='screen-reader-text' for='meta[{$entry['meta_id']}][key]'>" . __( 'Key' ) . "</label><input name='meta[{$entry['meta_id']}][key]' id='meta[{$entry['meta_id']}][key]' type='text' size='20' value='{$entry['meta_key']}' />";
$r .= "\n\t\t<div class='submit'>";
$r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta", "deletemeta[{$entry['meta_id']}]", false );
$r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta small", "deletemeta[{$entry['meta_id']}]", false );
$r .= "\n\t\t";
$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 );
$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 );
$r .= "</div>";
$r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
$r .= "</td>";
@ -554,8 +554,10 @@ function meta_form() {
<td><textarea id="metavalue" name="metavalue" rows="2" cols="25"></textarea></td>
</tr>
<tr><td colspan="2" class="submit">
<tr><td colspan="2">
<div class="submit">
<?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta secondary', 'addmeta', false, array( 'id' => 'newmeta-submit' ) ); ?>
</div>
<?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?>
</td></tr>
</tbody>