Media Library Bulk Select button size should be smaller.

Props afercia.
Fixes #32325.

Built from https://develop.svn.wordpress.org/trunk@32862


git-svn-id: http://core.svn.wordpress.org/trunk@32833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor
2015-06-19 18:56:27 +00:00
parent c5e088bf0f
commit b212ee67e7
11 changed files with 32 additions and 20 deletions

View File

@@ -1833,6 +1833,7 @@
.mejs-container:focus {
outline: 1px solid #5b9dd9;
-webkit-box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8);
box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8);
}

File diff suppressed because one or more lines are too long

View File

@@ -1833,6 +1833,7 @@
.mejs-container:focus {
outline: 1px solid #5b9dd9;
-webkit-box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8);
box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8);
}

File diff suppressed because one or more lines are too long

View File

@@ -279,6 +279,10 @@ var Button = wp.media.view.Button,
SelectModeToggle = Button.extend({
initialize: function() {
_.defaults( this.options, {
size : ''
} );
Button.prototype.initialize.apply( this, arguments );
this.listenTo( this.controller, 'select:activate select:deactivate', this.toggleBulkEditHandler );
this.listenTo( this.controller, 'selection:action:done', this.back );
@@ -310,12 +314,18 @@ SelectModeToggle = Button.extend({
// TODO: the Frame should be doing all of this.
if ( this.controller.isModeActive( 'select' ) ) {
this.model.set( 'text', l10n.cancelSelection );
this.model.set( {
size: 'large',
text: l10n.cancelSelection
} );
children.not( '.spinner, .media-button' ).hide();
this.$el.show();
toolbar.$( '.delete-selected-button' ).removeClass( 'hidden' );
} else {
this.model.set( 'text', l10n.bulkSelect );
this.model.set( {
size: '',
text: l10n.bulkSelect
} );
this.controller.content.get().$el.removeClass( 'fixed' );
toolbar.$el.css( 'width', '' );
toolbar.$( '.delete-selected-button' ).addClass( 'hidden' );

File diff suppressed because one or more lines are too long

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32861';
$wp_version = '4.3-alpha-32862';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.