WordPress.org

Make WordPress Core

Changeset 21520


Ignore:
Timestamp:
08/15/2012 05:56:24 AM (6 years ago)
Author:
lancewillett
Message:

Twenty Twelve: selector for navigation menu should style the menu list element, props obenland, see #21562.

Also remove duplicate line-height rule, props bradthomas127. See #21577.

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

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/js/theme.js

    r21519 r21520  
    1111
    1212    $.fn.smallMenu = function() {
     13        if ( ! masthead.find( '.menu' ).children().length ) {
     14            $( '.menu-toggle' ).remove();
     15            return;
     16        }
     17
    1318        masthead.find( '.site-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' );
    1419        masthead.find( '.site-navigation h3' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' );
  • trunk/wp-content/themes/twentytwelve/style.css

    r21518 r21520  
    508508
    509509/* Navigation Menu */
    510 .main-navigation {
     510.main-navigation .menu {
    511511    display: inline-block;
    512512    margin-top: 24px;
     
    12871287    font-size: 13px;
    12881288    font-size: 0.928571429rem;
    1289     line-height: 1.846153846;
    12901289    line-height: 1.714285714;
    12911290    list-style-type: square;
Note: See TracChangeset for help on using the changeset viewer.