Make WordPress Core

Changeset 31183


Ignore:
Timestamp:
01/15/2015 11:04:28 PM (10 years ago)
Author:
lancewillett
Message:

Twenty Fifteen: remove unused CSS rules for wp_page_menu since are not used in the theme. And a bit of CSS cleanup.

Props iamtakashi, fixes #30957.

Location:
trunk/src/wp-content/themes/twentyfifteen
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/css/ie.css

    r31001 r31183  
    126126}
    127127
    128 .main-navigation .page_item_has_children > a,
    129 .main-navigation .main-navigation .menu-item-has-children > a {
    130     padding-right: 53px;
     128.main-navigation .menu-item-has-children > a {
     129    padding-right: 48px;
    131130}
    132131
     
    840839}
    841840
    842 .rtl .main-navigation .page_item_has_children > a,
    843 .rtl .main-navigation .main-navigation .menu-item-has-children > a {
     841.rtl .main-navigation .menu-item-has-children > a {
    844842    padding-right: 0;
    845     padding-left: 53px;
     843    padding-left: 48px;
    846844}
    847845
  • trunk/src/wp-content/themes/twentyfifteen/js/functions.js

    r30838 r31183  
    1212
    1313    // Add dropdown toggle that display child menu items.
    14     $( '.main-navigation .page_item_has_children > a, .main-navigation .menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' );
     14    $( '.main-navigation .menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' );
    1515
    1616    $( '.dropdown-toggle' ).click( function( e ) {
  • trunk/src/wp-content/themes/twentyfifteen/rtl.css

    r30961 r31183  
    157157}
    158158
    159 .main-navigation .page_item_has_children > a,
    160159.main-navigation .menu-item-has-children > a {
    161160    padding-right: 0;
     
    478477    }
    479478
    480     .main-navigation .page_item_has_children > a,
    481     .main-navigation .main-navigation .menu-item-has-children > a {
    482         padding-right: 0;
    483         padding-left: 54px;
    484     }
    485 
    486479    blockquote.alignright,
    487480    .wp-caption.alignright
     
    568561    }
    569562
    570     .main-navigation .page_item_has_children > a,
    571     .main-navigation .main-navigation .menu-item-has-children > a {
    572         padding-right: 0;
    573         padding-left: 53px;
    574     }
    575 
    576563    blockquote.alignright,
    577564    .wp-caption.alignright
     
    653640    }
    654641
    655     .main-navigation .page_item_has_children > a,
    656642    .main-navigation .menu-item-has-children > a {
    657643        padding-right: 0;
    658         padding-left: 35px;
     644        padding-left: 30px;
    659645    }
    660646
     
    730716    }
    731717
    732     .main-navigation .page_item_has_children > a,
    733718    .main-navigation .menu-item-has-children > a {
    734719        padding-right: 0;
    735         padding-left: 33px;
     720        padding-left: 34px;
    736721    }
    737722
     
    796781    }
    797782
    798     .main-navigation .page_item_has_children > a,
    799783    .main-navigation .menu-item-has-children > a {
    800784        padding-right: 0;
    801         padding-left: 32px;
     785        padding-left: 38px;
    802786    }
    803787
  • trunk/src/wp-content/themes/twentyfifteen/style.css

    r31175 r31183  
    683683}
    684684
    685 .main-navigation .current_page_item > a,
    686685.main-navigation .current-menu-item > a,
    687 .main-navigation .current_page_ancestor > a {
     686.main-navigation .current-menu-ancestor > a {
    688687    font-weight: 700;
    689688}
     
    694693}
    695694
    696 .main-navigation .page_item_has_children > a,
    697695.main-navigation .menu-item-has-children > a {
    698696    padding-right: 48px;
     
    29602958    }
    29612959
    2962     .main-navigation .page_item_has_children > a,
    2963     .main-navigation .main-navigation .menu-item-has-children > a {
    2964         padding-right: 54px;
    2965     }
    2966 
    29672960    .main-navigation .menu-item-description {
    29682961        font-size: 14px;
     
    35863579    }
    35873580
    3588     .main-navigation .page_item_has_children > a,
    3589     .main-navigation .main-navigation .menu-item-has-children > a {
    3590         padding-right: 53px;
    3591     }
    3592 
    35933581    .main-navigation .menu-item-description {
    35943582        font-size: 16px;
     
    41864174    }
    41874175
    4188     .main-navigation .page_item_has_children > a,
    41894176    .main-navigation .menu-item-has-children > a {
    4190         padding-right: 35px;
     4177        padding-right: 30px;
    41914178    }
    41924179
     
    48464833    }
    48474834
    4848     .main-navigation .page_item_has_children > a,
    48494835    .main-navigation .menu-item-has-children > a {
    4850         padding-right: 33px;
     4836        padding-right: 34px;
    48514837    }
    48524838
     
    53855371    }
    53865372
    5387     .main-navigation .page_item_has_children > a,
    53885373    .main-navigation .menu-item-has-children > a {
    5389         padding-right: 32px;
     5374        padding-right: 38px;
    53905375    }
    53915376
Note: See TracChangeset for help on using the changeset viewer.