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:
parent
96eb9a93d9
commit
85df1aea07
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user