Fix "cursor in the air" in postboxes, fixes #7578
git-svn-id: http://svn.automattic.com/wordpress/trunk@8871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a2ac6a73f4
commit
aabd5aa94f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
postboxes = {
|
||||
add_postbox_toggles : function(page) {
|
||||
$('.postbox h3').before('<a class="togbox">+</a> ');
|
||||
$('.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' );
|
||||
|
|
|
@ -658,7 +658,6 @@ ul#adminmenu li.write-new-button a {
|
|||
color: #246;
|
||||
}
|
||||
|
||||
|
||||
#wphead h1 {
|
||||
font: normal 36px Georgia, "Times New Roman", Times, serif;
|
||||
padding: 11px 170px 16px 12px;
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue