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: http://svn.automattic.com/wordpress/trunk@20133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
koopersmith
2012-03-07 03:19:35 +00:00
parent 19b1746cc6
commit d4f20e47b7
8 changed files with 161 additions and 140 deletions

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 );
});
}