Media Grid: Improve position of fixed toolbar at small-screen sizes.

see #28842.
Built from https://develop.svn.wordpress.org/trunk@29517


git-svn-id: http://core.svn.wordpress.org/trunk@29293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-08-17 14:03:14 +00:00
parent 136cb144d5
commit 4dc4277a60
6 changed files with 36 additions and 6 deletions

View File

@ -2600,11 +2600,26 @@
.media-frame.mode-select .attachments-browser.fixed .media-toolbar {
position: fixed;
top: 12px;
top: 32px;
right: auto;
left: 20px;
margin-top: 0;
}
@media only screen and ( max-width: 782px ) {
.media-frame.mode-select .attachments-browser.fixed .media-toolbar {
top: 46px;
left: 10px;
}
}
@media only screen and (max-width: 600px) {
.media-frame.mode-select .attachments-browser.fixed .media-toolbar {
top: 0;
}
}
.media-frame.mode-grid input[type="search"] {
margin: 1px;
padding: 3px 5px;

File diff suppressed because one or more lines are too long

View File

@ -2600,11 +2600,26 @@
.media-frame.mode-select .attachments-browser.fixed .media-toolbar {
position: fixed;
top: 12px;
top: 32px;
left: auto;
right: 20px;
margin-top: 0;
}
@media only screen and ( max-width: 782px ) {
.media-frame.mode-select .attachments-browser.fixed .media-toolbar {
top: 46px;
right: 10px;
}
}
@media only screen and (max-width: 600px) {
.media-frame.mode-select .attachments-browser.fixed .media-toolbar {
top: 0;
}
}
.media-frame.mode-grid input[type="search"] {
margin: 1px;
padding: 3px 5px;

File diff suppressed because one or more lines are too long

View File

@ -67,7 +67,7 @@
this.$window = $( window );
this.$adminBar = $( '#wpadminbar' );
this.$window.on( 'scroll', _.debounce( _.bind( this.fixPosition, this ), 15 ) );
this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) );
$( document ).on( 'click', '.add-new-h2', _.bind( this.addNewClickHandler, this ) );
// Ensure core and media grid view UI is enabled.

File diff suppressed because one or more lines are too long