Make WordPress Core

Ticket #26424: 26424.diff

File 26424.diff, 2.2 KB (added by celloexpressions, 11 years ago)

Apply the current menu item color to the dropdown indicators, where appropriate (should cover all cases for both primary and secondary nav, menus 3+ levels deep)

  • wp-content/themes/twentyfourteen/style.css

     
    34203420                right: 12px;
    34213421        }
    34223422
     3423        .primary-navigation .current_page_item > a:after,
     3424        .primary-navigation .current_page_ancestor > a:after,
     3425        .primary-navigation .current-menu-item > a:after,
     3426        .primary-navigation .current-menu-ancestor > a:after {
     3427                border-top-color: #55d737;
     3428        }
     3429
     3430        .primary-navigation .current_page_item:hover > a:after,
     3431        .primary-navigation .current_page_ancestor:hover > a:after,
     3432        .primary-navigation .current-menu-item:hover > a:after,
     3433        .primary-navigation .current-menu-ancestor:hover > a:after {
     3434                border-top-color: #fff;
     3435        }
     3436
     3437        .primary-navigation .sub-menu .current_page_item:hover > a:after,
     3438        .primary-navigation .sub-menu .current_page_ancestor:hover > a:after,
     3439        .primary-navigation .sub-menu .current-menu-item:hover > a:after,
     3440        .primary-navigation .sub-menu .current-menu-ancestor:hover > a:after {
     3441                border-top-color: transparent;
     3442        }
     3443
    34233444        .primary-navigation li .menu-item-has-children > a,
    34243445        .primary-navigation li .page_item_has_children > a {
    34253446                padding-right: 20px;
     
    36513672                right: 26px;
    36523673        }
    36533674
     3675        .secondary-navigation .current_page_item > a:after,
     3676        .secondary-navigation .current_page_ancestor > a:after,
     3677        .secondary-navigation .current-menu-item > a:after,
     3678        .secondary-navigation .current-menu-ancestor > a:after {
     3679                border-left-color: #55d737;
     3680        }
     3681
     3682        .secondary-navigation .sub-menu .current_page_item > a:after,
     3683        .secondary-navigation .sub-menu .current_page_ancestor > a:after,
     3684        .secondary-navigation .sub-menu .current-menu-item > a:after,
     3685        .secondary-navigation .sub-menu .current-menu-ancestor > a:after,
     3686        .secondary-navigation .current_page_item:hover > a:after,
     3687        .secondary-navigation .current_page_ancestor:hover > a:after,
     3688        .secondary-navigation .current-menu-item:hover > a:after,
     3689        .secondary-navigation .current-menu-ancestor:hover > a:after {
     3690                border-left-color: #fff;
     3691        }
     3692
    36543693        .footer-sidebar .widget,
    36553694        .primary-sidebar .widget {
    36563695                font-size: 12px;