From 8ccffecf030b580957d2920f96867e956595e896 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 17 Dec 2014 16:39:46 +0000 Subject: [PATCH] Twenty Fifteen: ensure menu icon is properly centered for RTL views on small screens. Props iamtakashi, fixes #30739. Built from https://develop.svn.wordpress.org/trunk@30955 git-svn-id: http://core.svn.wordpress.org/trunk@30943 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfifteen/rtl.css | 10 ---------- wp-content/themes/twentyfifteen/style.css | 15 ++++++++------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/wp-content/themes/twentyfifteen/rtl.css b/wp-content/themes/twentyfifteen/rtl.css index 332a194ed8..d800b6fbdd 100644 --- a/wp-content/themes/twentyfifteen/rtl.css +++ b/wp-content/themes/twentyfifteen/rtl.css @@ -126,16 +126,6 @@ td { left: 0; } -.secondary-toggle:before { - right: 0; - left: auto; -} - -.secondary-toggle.toggled-on:before { - right: 0; - left: auto; -} - .post-navigation .has-post-thumbnail a:before { right: 0; left: auto; diff --git a/wp-content/themes/twentyfifteen/style.css b/wp-content/themes/twentyfifteen/style.css index d306d0cf90..f90dfbaeab 100644 --- a/wp-content/themes/twentyfifteen/style.css +++ b/wp-content/themes/twentyfifteen/style.css @@ -902,10 +902,8 @@ a:focus { .secondary-toggle:before { color: #333; content: "\f419"; - line-height: 42px; - position: relative; - top: -1px; - left: 0; + line-height: 40px; + width: 40px; } .secondary-toggle:hover, @@ -919,7 +917,8 @@ a:focus { .secondary-toggle.toggled-on:before { content: "\f405"; font-size: 32px; - top: 0; + position: relative; + top: 1px; left: -1px; } @@ -2883,7 +2882,8 @@ p > video { } .secondary-toggle:before { - line-height: 56px; + line-height: 54px; + width: 54px; } .post-password-form label, @@ -3475,7 +3475,8 @@ p > video { } .secondary-toggle:before { - line-height: 64px; + line-height: 62px; + width: 62px; } .post-password-form label,