Make WordPress Core

Changeset 23711


Ignore:
Timestamp:
03/15/2013 04:42:10 PM (11 years ago)
Author:
lancewillett
Message:

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.

Location:
trunk/wp-content/themes/twentytwelve
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/inc/custom-header.php

    r23572 r23711  
    7070        .site-title,
    7171        .site-description {
    72             position: absolute !important;
     72            position: absolute;
    7373            clip: rect(1px 1px 1px 1px); /* IE7 */
    7474            clip: rect(1px, 1px, 1px, 1px);
  • trunk/wp-content/themes/twentytwelve/js/theme-customizer.js

    r23572 r23711  
    1818        } );
    1919    } );
     20
    2021    // Header text color
    2122    wp.customize( 'header_textcolor', function( value ) {
    2223        value.bind( function( to ) {
    23             $( '.site-title a, .site-description' ).css( 'color', to );
     24            if ( 'blank' === to ) {
     25                $( '.site-title, .site-title a, .site-description' ).css( {
     26                    'clip': 'rect(1px, 1px, 1px, 1px)',
     27                    'position': 'absolute'
     28                } );
     29            } else {
     30                $( '.site-title, .site-title a, .site-description' ).css( {
     31                    'clip': 'auto',
     32                    'color': to,
     33                    'position': 'relative'
     34                } );
     35            }
    2436        } );
    2537    } );
Note: See TracChangeset for help on using the changeset viewer.