Twenty Fifteen: simpler CSS by using divs instead of spans for menu descriptions.

Props philiparthurmoore, fixes #30296



git-svn-id: https://develop.svn.wordpress.org/trunk@30302 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ian Stewart 2014-11-11 19:01:47 +00:00
parent 96eb9a93d9
commit 85df1aea07
2 changed files with 1 additions and 2 deletions

View File

@ -294,7 +294,7 @@ add_action( 'wp_enqueue_scripts', 'twentyfifteen_post_nav_background' );
*/
function twentyfifteen_nav_description( $item_output, $item, $depth, $args ) {
if ( 'primary' == $args->theme_location && $item->description ) {
$item_output = str_replace( $args->link_after . '</a>', '<span class="menu-item-description">' . $item->description . '</span>' . $args->link_after . '</a>', $item_output );
$item_output = str_replace( $args->link_after . '</a>', '<div class="menu-item-description">' . $item->description . '</div>' . $args->link_after . '</a>', $item_output );
}
return $item_output;

View File

@ -692,7 +692,6 @@ a:focus {
.main-navigation .menu-item-description {
color: #707070;
color: rgba(51, 51, 51, 0.7);
display: block;
font-family: "Noto Sans", sans-serif;
font-size: 12px;
font-size: 1.2rem;