From cebeafc233a2d95f4c2a0957efc1866bb343a6c8 Mon Sep 17 00:00:00 2001 From: Matt Thomas Date: Tue, 3 Dec 2013 17:24:42 +0000 Subject: [PATCH] Give the adminbar Edit Post link an icon, and make it visible on small screen responsive states. See #26071. git-svn-id: https://develop.svn.wordpress.org/trunk@26559 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/css/admin-bar.css | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css index 216f15eeda..53b166266c 100644 --- a/src/wp-includes/css/admin-bar.css +++ b/src/wp-includes/css/admin-bar.css @@ -468,6 +468,11 @@ top: 2px; } +#wpadminbar #wp-admin-bar-edit > .ab-item:before { + content: '\f327'; + top: 2px; +} + #wpadminbar #wp-admin-bar-site-name > .ab-item:before { content: '\f319'; } @@ -763,9 +768,11 @@ /* My Sites and "Site Title" menu */ #wpadminbar #wp-admin-bar-my-sites > .ab-item, - #wpadminbar #wp-admin-bar-site-name > .ab-item { + #wpadminbar #wp-admin-bar-site-name > .ab-item, + #wpadminbar #wp-admin-bar-edit > .ab-item { text-indent: 100%; - text-overflow: clip !important; + white-space: nowrap; + overflow: hidden; width: 50px; padding: 0; color: #999; @@ -778,7 +785,8 @@ padding: 0; margin-right: 0; } - + + #wpadminbar #wp-admin-bar-edit > .ab-item:before, #wpadminbar #wp-admin-bar-my-sites > .ab-item:before, #wpadminbar #wp-admin-bar-site-name > .ab-item:before { display: block; @@ -892,6 +900,7 @@ #wp-admin-bar-root-default li#wp-admin-bar-my-sites, #wp-admin-bar-root-default li#wp-admin-bar-site-name, #wp-admin-bar-root-default li#wp-admin-bar-new-content, + #wp-admin-bar-root-default li#wp-admin-bar-edit, #wp-admin-bar-root-default li#wp-admin-bar-comments, #wp-admin-bar-root-default li#wp-admin-bar-new-content, #wp-admin-bar-top-secondary li#wp-admin-bar-my-account { @@ -911,6 +920,7 @@ #wpadminbar #wp-admin-bar-updates, #wpadminbar #wp-admin-bar-comments, #wpadminbar #wp-admin-bar-new-content, + #wpadminbar #wp-admin-bar-edit, #wpadminbar #wp-admin-bar-my-account { position: static; }