mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 07:35:39 +01:00
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:
parent
136cb144d5
commit
4dc4277a60
@ -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;
|
||||
|
2
wp-includes/css/media-views-rtl.min.css
vendored
2
wp-includes/css/media-views-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||
|
2
wp-includes/css/media-views.min.css
vendored
2
wp-includes/css/media-views.min.css
vendored
File diff suppressed because one or more lines are too long
@ -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.
|
||||
|
2
wp-includes/js/media-grid.min.js
vendored
2
wp-includes/js/media-grid.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user