From 3b9ec0a8872a9663bfdaeef6500acccf618242dc Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 5 Dec 2013 06:14:27 +0000 Subject: [PATCH] Twenty Fourteen: rework "current menu" submenu icons to use Genericons for simplicity and to inherit colors better. Props celloexpressions, fixes #26424. git-svn-id: https://develop.svn.wordpress.org/trunk@26662 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfourteen/style.css | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/wp-content/themes/twentyfourteen/style.css b/src/wp-content/themes/twentyfourteen/style.css index b3f314826a..da081341ff 100644 --- a/src/wp-content/themes/twentyfourteen/style.css +++ b/src/wp-content/themes/twentyfourteen/style.css @@ -3431,13 +3431,14 @@ a.post-thumbnail:hover { .primary-navigation .menu-item-has-children > a:after, .primary-navigation .page_item_has_children > a:after { - border: 4px solid transparent; - border-top-color: #fff; - content: ""; - margin-top: -2px; + -webkit-font-smoothing: antialiased; + content: "\f502"; + display: inline-block; + font: normal 8px/1 Genericons; position: absolute; - top: 50%; right: 12px; + top: 22px; + vertical-align: text-bottom; } .primary-navigation li .menu-item-has-children > a, @@ -3446,12 +3447,13 @@ a.post-thumbnail:hover { width: 168px; } - .primary-navigation .menu-item-has-children li > a:after, - .primary-navigation .page_item_has_children li > a:after { - border-top-color: transparent; - border-left-color: #fff; - margin-top: -4px; + .primary-navigation .menu-item-has-children li.menu-item-has-children > a:after, + .primary-navigation .menu-item-has-children li.page_item_has_children > a:after, + .primary-navigation .page_item_has_children li.menu-item-has-children > a:after, + .primary-navigation .page_item_has_children li.page_item_has_children > a:after { + content: "\f501"; right: 8px; + top: 20px; } } @@ -3662,13 +3664,14 @@ a.post-thumbnail:hover { } .secondary-navigation .menu-item-has-children > a:after { - border: 4px solid transparent; - border-left-color: #fff; - content: ""; - margin-top: -4px; + -webkit-font-smoothing: antialiased; + content: "\f501"; + display: inline-block; + font: normal 8px/1 Genericons; position: absolute; - top: 50%; right: 26px; + top: 14px; + vertical-align: text-bottom; } .footer-sidebar .widget,