From b401b8d14dcb50fc2698a024bc4bf112c951798c Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 23 Sep 2012 17:42:46 +0000 Subject: [PATCH] Better alignment in the ustom fields metabox. props SergeyBiryukov, ocean90, fixes #21847. git-svn-id: https://develop.svn.wordpress.org/trunk@21955 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/css/wp-admin-rtl.css | 6 +---- wp-admin/css/wp-admin.css | 48 ++++++++++++++++++---------------- wp-admin/includes/template.php | 8 +++--- 3 files changed, 32 insertions(+), 30 deletions(-) diff --git a/wp-admin/css/wp-admin-rtl.css b/wp-admin/css/wp-admin-rtl.css index 7fb308b9c5..22c57929ad 100644 --- a/wp-admin/css/wp-admin-rtl.css +++ b/wp-admin/css/wp-admin-rtl.css @@ -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 diff --git a/wp-admin/css/wp-admin.css b/wp-admin/css/wp-admin.css index c62889f5e3..89d89c2592 100644 --- a/wp-admin/css/wp-admin.css +++ b/wp-admin/css/wp-admin.css @@ -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; +#postcustomstuff #newmetaleft a { + display: inline-block; + margin: 0 8px 8px; text-decoration: none; } diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index e4b07f8287..92bfc2deb1 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -492,9 +492,9 @@ function _list_meta_row( $entry, &$count ) { $r .= "\n\t\t"; $r .= "\n\t\t
"; - $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 .= "
"; $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); $r .= ""; @@ -554,8 +554,10 @@ function meta_form() { - + +
'newmeta-submit' ) ); ?> +