From a39981c0960d87277ffe1fe0af45f3874752b219 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 11 Sep 2008 21:40:28 +0000 Subject: [PATCH] Fix "cursor in the air" in postboxes, fixes #7578 git-svn-id: https://develop.svn.wordpress.org/trunk@8871 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/css/colors-classic.css | 2 +- wp-admin/css/colors-fresh.css | 2 +- wp-admin/js/postbox.js | 6 ++++-- wp-admin/wp-admin.css | 22 +++++++--------------- 4 files changed, 13 insertions(+), 19 deletions(-) diff --git a/wp-admin/css/colors-classic.css b/wp-admin/css/colors-classic.css index c9252683f1..2d9cc47392 100644 --- a/wp-admin/css/colors-classic.css +++ b/wp-admin/css/colors-classic.css @@ -324,7 +324,7 @@ h3.dashboard-widget-title small a:hover { color: #5a5a5a; } -#poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, a { +#poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-sortable .postbox h3:hover span, a { color: #2e7ca0; } diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index b8abd148bb..175a962740 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -323,7 +323,7 @@ h3.dashboard-widget-title small a:hover { color: #333; } -#adminmenu a, #adminmenu ul.wp-submenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, a { +#adminmenu a, #adminmenu ul.wp-submenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, .ui-sortable .postbox h3:hover span, a { color: #2583ad; } diff --git a/wp-admin/js/postbox.js b/wp-admin/js/postbox.js index 86c2a81ddc..de83dfa40a 100644 --- a/wp-admin/js/postbox.js +++ b/wp-admin/js/postbox.js @@ -3,7 +3,7 @@ postboxes = { add_postbox_toggles : function(page) { $('.postbox h3').before('+ '); - $('.postbox a.togbox').click( function() { $($(this).parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } ); + $('.postbox h3, .postbox a.togbox').click( function() { $($(this).parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } ); $('.hide-postbox-tog').click( function() { var box = jQuery(this).val(); @@ -40,7 +40,9 @@ jQuery('.meta-box-sortables').sortable( { connectWith: [ '.meta-box-sortables' ], items: '> .postbox', - handle: 'h3', + handle: '.hndle', + distance: 2, + containment: '#wpbody-content', stop: function() { if ( 'side-sortables' == this.id ) { // doing this with jQuery doesn't work for some reason: make-it-tall gets duplicated var makeItTall = document.getElementById( 'make-it-tall' ); diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 8c01d9ca43..f16744afab 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -657,7 +657,6 @@ ul#adminmenu li.write-new-button a { text-align: center; color: #246; } - #wphead h1 { font: normal 36px Georgia, "Times New Roman", Times, serif; @@ -1819,25 +1818,18 @@ fieldset { .settings-toggle h3 { margin: 0; } -/* -p.meta-options { - border: 1px solid; - padding: 1em .5em; -} -*/ + .ui-sortable .postbox h3 { - cursor:move; + cursor: pointer; } a.togbox { cursor: pointer; } -p#post-search-prep { - margin: 0; - position: absolute; - right: 20px; - top: 50px; +.ui-sortable .postbox .hndle { + padding: 6px 0; + cursor: move; } #jj, #hh, #mn { @@ -2088,7 +2080,7 @@ p#post-search-prep { } #hide-settings-link { - background-image: url(images/menu-open.png); + background-image: url(images/menu-open.png); } #edit-settings { @@ -2223,7 +2215,7 @@ p#post-search-prep { .inline ul.categories { list-style: none; - padding: 0; margin: 0; + padding: 0; margin: 0; height: 65px; overflow: auto; font-size: 10px;