From 408041ca39f215d6860ee312168fb371edfbc4de Mon Sep 17 00:00:00 2001 From: Matt Thomas Date: Tue, 3 Dec 2013 21:52:34 +0000 Subject: [PATCH] Add .ab-empty-item to the responsive adminbar sizing adjustments. Ensure that hidden text in responsive adminbar stays properly hidden in Firefox. See #26299. git-svn-id: https://develop.svn.wordpress.org/trunk@26595 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/css/admin-bar.css | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css index ef88be1643..533fa8216a 100644 --- a/src/wp-includes/css/admin-bar.css +++ b/src/wp-includes/css/admin-bar.css @@ -693,7 +693,8 @@ font: normal 14px/32px "Open Sans", sans-serif; } - #wpadminbar .quicklinks li > a { + #wpadminbar .quicklinks li > a, + #wpadminbar .quicklinks .ab-empty-item { padding: 0; height: 46px; line-height: 46px; @@ -706,6 +707,7 @@ padding: 0; width: 50px; height: 46px; + text-align: center; } #wpadminbar .ab-icon:before { @@ -716,6 +718,12 @@ padding: 0; } + #wpadminbar #wp-admin-bar-site-name a.ab-item, + #wpadminbar #wp-admin-bar-my-sites a.ab-item, + #wpadminbar #wp-admin-bar-my-account a.ab-item { + text-overflow: clip; + } + #wpadminbar .ab-label { display: none; } @@ -849,7 +857,7 @@ #wpadminbar #wp-admin-bar-my-account > a { position: relative; white-space: nowrap; - text-indent: 100%; + text-indent: 150%; /* More than 100% indention is needed since this element has padding */ width: 28px; padding: 0 10px; overflow: hidden; /* Prevent link text from forcing horizontal scrolling on mobile */