Skip to content

Commit db11e3f

Browse files
author
azaozz
committed
Change the drop target border color, props ocean90, fixes #19298
git-svn-id: http://core.svn.wordpress.org/trunk@19367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 3de211c commit db11e3f

File tree

5 files changed

+20
-13
lines changed

5 files changed

+20
-13
lines changed

wp-admin/css/wp-admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-admin/css/wp-admin.dev.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3943,15 +3943,20 @@ form.upgrade .hint {
39433943
display: block;
39443944
}
39453945

3946+
/*
3947+
#drag-drop-area:-moz-drag-over {
3948+
border-color: #83b4d8;
3949+
}
3950+
borger color while dragging a file over the uploader drop area */
3951+
.drag-drop.drag-over #drag-drop-area {
3952+
border-color: #83b4d8;
3953+
}
3954+
39463955
#plupload-upload-ui {
39473956
position: relative;
39483957
}
39493958

3950-
/*
3951-
#drag-drop-area:-moz-drag-over {
3952-
border-color: #cf5;
3953-
}
3954-
*/
3959+
39553960
/*------------------------------------------------------------------------------
39563961
14.2 - Image Editor
39573962
------------------------------------------------------------------------------*/

wp-includes/js/plupload/handlers.dev.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,17 +411,19 @@ jQuery(document).ready(function($){
411411
});
412412

413413
uploader.bind('Init', function(up) {
414+
var uploaddiv = $('#plupload-upload-ui');
415+
414416
setResize( getUserSetting('upload_resize', false) );
415417

416418
if ( up.features.dragdrop ) {
417-
$('#plupload-upload-ui').addClass('drag-drop');
419+
uploaddiv.addClass('drag-drop');
418420
$('#drag-drop-area').bind('dragover.wp-uploader', function(){ // dragenter doesn't fire right :(
419-
$(this).css('border-color', '#ccff55');
421+
uploaddiv.addClass('drag-over');
420422
}).bind('dragleave.wp-uploader, drop.wp-uploader', function(){
421-
$(this).css('border-color', '');
423+
uploaddiv.removeClass('drag-over');
422424
});
423425
} else {
424-
$('#plupload-upload-ui').removeClass('drag-drop');
426+
uploaddiv.removeClass('drag-drop');
425427
$('#drag-drop-area').unbind('.wp-uploader');
426428
}
427429
});

0 commit comments

Comments
 (0)