From 321dbd8efccfb2640cb74b1b07f3d762584a2165 Mon Sep 17 00:00:00 2001 From: David Baumwald Date: Thu, 18 Nov 2021 16:46:56 +0000 Subject: [PATCH] Toolbar: Refine "Edit site" link.php. The 'Edit site' link was added to core in [52158], but did not include an icon and was hidden for smaller screen sizes. This change adds the "Appearance" icon to the link and hides the link text when necessary on smaller screen sizes. Props sabernhardt, desrosj, shaunandrews. Fixes #54441. git-svn-id: https://develop.svn.wordpress.org/trunk@52209 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/css/admin-bar.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css index a7a7ab52d4..151c8064f4 100644 --- a/src/wp-includes/css/admin-bar.css +++ b/src/wp-includes/css/admin-bar.css @@ -549,12 +549,16 @@ html:lang(he-il) .rtl #wpadminbar * { top: 2px; } +#wpadminbar #wp-admin-bar-site-editor > .ab-item:before { + content: "\f100"; + top: 2px; +} + #wpadminbar #wp-admin-bar-customize > .ab-item:before { content: "\f540"; top: 2px; } - #wpadminbar #wp-admin-bar-edit > .ab-item:before { content: "\f464"; top: 2px; @@ -843,6 +847,7 @@ html:lang(he-il) .rtl #wpadminbar * { /* 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-editor > .ab-item, #wpadminbar #wp-admin-bar-customize > .ab-item, #wpadminbar #wp-admin-bar-edit > .ab-item, #wpadminbar #wp-admin-bar-my-account > .ab-item { @@ -865,6 +870,7 @@ html:lang(he-il) .rtl #wpadminbar * { #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, + #wpadminbar #wp-admin-bar-site-editor > .ab-item:before, #wpadminbar #wp-admin-bar-customize > .ab-item:before, #wpadminbar #wp-admin-bar-my-account > .ab-item:before { display: block; @@ -979,6 +985,7 @@ html:lang(he-il) .rtl #wpadminbar * { #wpadminbar li#wp-admin-bar-my-sites, #wpadminbar li#wp-admin-bar-updates, #wpadminbar li#wp-admin-bar-site-name, + #wpadminbar li#wp-admin-bar-site-editor, #wpadminbar li#wp-admin-bar-customize, #wpadminbar li#wp-admin-bar-new-content, #wpadminbar li#wp-admin-bar-edit,