Twenty Thirteen: fix toggling header text display in Customizer. Props obenland, fixes #23722.

git-svn-id: http://core.svn.wordpress.org/trunk@23670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-03-12 16:52:30 +00:00
parent 28248c1b08
commit 92852af835
2 changed files with 16 additions and 2 deletions

View File

@ -96,7 +96,7 @@ function twentythirteen_header_style() {
?>
.site-title,
.site-description {
position: absolute !important;
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE7 */
clip: rect(1px, 1px, 1px, 1px);
}

View File

@ -20,7 +20,21 @@
// Header text color.
wp.customize( 'header_textcolor', function( value ) {
value.bind( function( to ) {
$( '.site-title, .site-description' ).css( 'color', to );
if ( 'blank' == to ) {
if ( 'remove-header' == _wpCustomizeSettings.values.header_image )
$( '#masthead hgroup' ).css( 'min-height', '0' );
$( '.site-title, .site-description' ).css( {
'clip': 'rect(1px, 1px, 1px, 1px)',
'position': 'absolute'
} );
} else {
$( '#masthead hgroup' ).css( 'min-height', '230px' );
$( '.site-title, .site-description' ).css( {
'clip': 'auto',
'color': to,
'position': 'relative'
} );
}
} );
} );
} )( jQuery );