Theme Customizer: Move contents of customize.loader.css to wp-admin.css. Make markup/CSS for the full-screen overlay modular. see #19910.

git-svn-id: https://develop.svn.wordpress.org/trunk@20133 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-03-07 03:19:35 +00:00
parent 3f11180883
commit f5b9beb8dd
8 changed files with 161 additions and 140 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ if ( typeof wp === 'undefined' )
this.base = $( '.admin-url', this.element ).val();
this.doc_title = $( document ).attr( 'title' );
this.element.on( 'click', '.return-to-admin', function() {
this.element.on( 'click', '.close-full-overlay', function() {
Loader.close();
return false;
});
@@ -31,14 +31,14 @@ if ( typeof wp === 'undefined' )
});
this.element.fadeIn( 200, function() {
Loader.body.addClass( 'customize-active' );
Loader.body.addClass( 'customize-active full-overlay-active' );
});
},
close: function() {
this.element.fadeOut( 200, function() {
Loader.iframe.remove();
Loader.iframe = null;
Loader.body.removeClass( 'customize-active' );
Loader.body.removeClass( 'customize-active full-overlay-active' );
$( document ).attr( 'title', Loader.doc_title );
});
}