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.

git-svn-id: https://develop.svn.wordpress.org/trunk@31183 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2015-01-15 23:04:28 +00:00
parent 541ec337cf
commit f09026e439
4 changed files with 12 additions and 45 deletions

View File

@ -125,9 +125,8 @@ textarea {
padding: 0.75em 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .main-navigation .menu-item-has-children > a {
padding-right: 53px;
.main-navigation .menu-item-has-children > a {
padding-right: 48px;
}
.main-navigation .menu-item-description {
@ -839,10 +838,9 @@ video {
margin-left: auto;
}
.rtl .main-navigation .page_item_has_children > a,
.rtl .main-navigation .main-navigation .menu-item-has-children > a {
.rtl .main-navigation .menu-item-has-children > a {
padding-right: 0;
padding-left: 53px;
padding-left: 48px;
}
.rtl .secondary-toggle {

View File

@ -11,7 +11,7 @@
topOffset = 0, bodyHeight, sidebarHeight, resizeTimer;
// Add dropdown toggle that display child menu items.
$( '.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>' );
$( '.main-navigation .menu-item-has-children > a' ).after( '<button class="dropdown-toggle" aria-expanded="false">' + screenReaderText.expand + '</button>' );
$( '.dropdown-toggle' ).click( function( e ) {
var _this = $( this );

View File

@ -156,7 +156,6 @@ td {
margin-left: auto;
}
.main-navigation .page_item_has_children > a,
.main-navigation .menu-item-has-children > a {
padding-right: 0;
padding-left: 48px;
@ -477,12 +476,6 @@ img.alignleft {
margin-left: auto;
}
.main-navigation .page_item_has_children > a,
.main-navigation .main-navigation .menu-item-has-children > a {
padding-right: 0;
padding-left: 54px;
}
blockquote.alignright,
.wp-caption.alignright
img.alignright {
@ -567,12 +560,6 @@ img.alignleft {
padding-left: 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .main-navigation .menu-item-has-children > a {
padding-right: 0;
padding-left: 53px;
}
blockquote.alignright,
.wp-caption.alignright
img.alignright {
@ -652,10 +639,9 @@ img.alignleft {
padding-left: 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .menu-item-has-children > a {
padding-right: 0;
padding-left: 35px;
padding-left: 30px;
}
blockquote.alignright,
@ -729,10 +715,9 @@ img.alignleft {
padding-left: 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .menu-item-has-children > a {
padding-right: 0;
padding-left: 33px;
padding-left: 34px;
}
blockquote.alignright,
@ -795,10 +780,9 @@ img.alignleft {
padding-left: 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .menu-item-has-children > a {
padding-right: 0;
padding-left: 32px;
padding-left: 38px;
}
blockquote.alignright,

View File

@ -682,9 +682,8 @@ a:focus {
position: relative;
}
.main-navigation .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_ancestor > a {
.main-navigation .current-menu-ancestor > a {
font-weight: 700;
}
@ -693,7 +692,6 @@ a:focus {
border-top: 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .menu-item-has-children > a {
padding-right: 48px;
}
@ -2959,11 +2957,6 @@ p > video {
margin-left: 1em;
}
.main-navigation .page_item_has_children > a,
.main-navigation .main-navigation .menu-item-has-children > a {
padding-right: 54px;
}
.main-navigation .menu-item-description {
font-size: 14px;
font-size: 1.4rem;
@ -3585,11 +3578,6 @@ p > video {
padding: 0.75em 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .main-navigation .menu-item-has-children > a {
padding-right: 53px;
}
.main-navigation .menu-item-description {
font-size: 16px;
font-size: 1.6rem;
@ -4185,9 +4173,8 @@ p > video {
padding: 0.5em 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .menu-item-has-children > a {
padding-right: 35px;
padding-right: 30px;
}
.main-navigation .menu-item-description {
@ -4845,9 +4832,8 @@ p > video {
padding: 0.4643em 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .menu-item-has-children > a {
padding-right: 33px;
padding-right: 34px;
}
.main-navigation .menu-item-description {
@ -5384,9 +5370,8 @@ p > video {
padding: 0.5em 0;
}
.main-navigation .page_item_has_children > a,
.main-navigation .menu-item-has-children > a {
padding-right: 32px;
padding-right: 38px;
}
.main-navigation .menu-item-description {