Disable background page scrolling when modals are open.
props celloexpressions. fixes #29074. Built from https://develop.svn.wordpress.org/trunk@29346 git-svn-id: http://core.svn.wordpress.org/trunk@29124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -218,6 +218,10 @@ body.iframe {
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
body.modal-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
iframe,
|
||||
img {
|
||||
border: 0;
|
||||
|
||||
@@ -218,6 +218,10 @@ body.iframe {
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
body.modal-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
iframe,
|
||||
img {
|
||||
border: 0;
|
||||
|
||||
@@ -409,10 +409,6 @@
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
body.theme-overlay-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.theme-overlay .theme-header {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
@@ -409,10 +409,6 @@
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
body.theme-overlay-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.theme-overlay .theme-header {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
2
wp-admin/css/wp-admin-rtl.min.css
vendored
2
wp-admin/css/wp-admin-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
2
wp-admin/css/wp-admin.min.css
vendored
2
wp-admin/css/wp-admin.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -701,7 +701,7 @@ themes.view.Details = wp.Backbone.View.extend({
|
||||
// Performs the actions to effectively close
|
||||
// the theme details overlay
|
||||
closeOverlay: function() {
|
||||
$( 'body' ).removeClass( 'theme-overlay-open' );
|
||||
$( 'body' ).removeClass( 'modal-open' );
|
||||
this.remove();
|
||||
this.unbind();
|
||||
this.trigger( 'theme:collapse' );
|
||||
@@ -1000,7 +1000,7 @@ themes.view.Themes = wp.Backbone.View.extend({
|
||||
|
||||
// Sets this.view to 'detail'
|
||||
this.setView( 'detail' );
|
||||
$( 'body' ).addClass( 'theme-overlay-open' );
|
||||
$( 'body' ).addClass( 'modal-open' );
|
||||
|
||||
// Set up the theme details view
|
||||
this.overlay = new themes.view.Details({
|
||||
|
||||
2
wp-admin/js/theme.min.js
vendored
2
wp-admin/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user