Twenty Fifteen: simpler CSS by using divs instead of spans for menu descriptions.
Props philiparthurmoore, fixes #30296 Built from https://develop.svn.wordpress.org/trunk@30302 git-svn-id: http://core.svn.wordpress.org/trunk@30301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5fe8fa2b40
commit
1f2397af34
|
@ -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;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.1-alpha-30301';
|
||||
$wp_version = '4.1-alpha-30302';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue