Twenty Twelve: fix regression introduced in r23572, allow hide/show of Header Text in Customizer. Fixes #23600.
Also remove another `!important` -- and there was much rejoicing. Props SergeyBiryukov and obenland. git-svn-id: https://develop.svn.wordpress.org/trunk@23711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e7d746e561
commit
5fd51d5403
|
@ -69,7 +69,7 @@ function twentytwelve_header_style() {
|
||||||
?>
|
?>
|
||||||
.site-title,
|
.site-title,
|
||||||
.site-description {
|
.site-description {
|
||||||
position: absolute !important;
|
position: absolute;
|
||||||
clip: rect(1px 1px 1px 1px); /* IE7 */
|
clip: rect(1px 1px 1px 1px); /* IE7 */
|
||||||
clip: rect(1px, 1px, 1px, 1px);
|
clip: rect(1px, 1px, 1px, 1px);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,22 @@
|
||||||
$( '.site-description' ).text( to );
|
$( '.site-description' ).text( to );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// Header text color
|
// Header text color
|
||||||
wp.customize( 'header_textcolor', function( value ) {
|
wp.customize( 'header_textcolor', function( value ) {
|
||||||
value.bind( function( to ) {
|
value.bind( function( to ) {
|
||||||
$( '.site-title a, .site-description' ).css( 'color', to );
|
if ( 'blank' === to ) {
|
||||||
|
$( '.site-title, .site-title a, .site-description' ).css( {
|
||||||
|
'clip': 'rect(1px, 1px, 1px, 1px)',
|
||||||
|
'position': 'absolute'
|
||||||
|
} );
|
||||||
|
} else {
|
||||||
|
$( '.site-title, .site-title a, .site-description' ).css( {
|
||||||
|
'clip': 'auto',
|
||||||
|
'color': to,
|
||||||
|
'position': 'relative'
|
||||||
|
} );
|
||||||
|
}
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue