-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Admin bar: Replace home/odometer dashicon with actual site icon if set #11781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b2a824c
33e9fd2
6f2438e
e43b62e
a413c11
3c7c13d
05da088
a01a690
a6287c5
45a39f4
a346946
c8788fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -539,6 +539,10 @@ html:lang(he-il) .rtl #wpadminbar * { | |
| margin: 0 8px 2px -2px; | ||
| } | ||
|
|
||
| #wpadminbar .quicklinks li img.blavatar { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Won't this also round the blavatars in the "My Sites" menu? Is that intended and has it been discussed?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's intentional (from my side) but we never actually discussed it because we just discovered that case now 😄 I think it's fine and consistent though. Even before this change, if you go to Settings -> General, and upload a site icon, somehow we already round it in the preview:
cc-ing: @jasmussen and @lucasmendes-design just in case.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the browser, the icon has rounded corners only if you upload an image with that. Otherwise, it's like what Ashar described. LGTM! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is one of the strongest reasons for why I firmly stand by my proposal that the user avatar should also be circular. We are working with images that are 20x20px in size, people of low vision need more than the contents inside for them to indicate concepts. If we establish that sites are round-rects, and users are circles, we provide a clean and clear silhouette that is immediately accessible way to differentiating between the two. |
||
| border-radius: 2px; | ||
| } | ||
|
|
||
| #wpadminbar .quicklinks li div.blavatar:before { | ||
| content: "\f120"; | ||
| content: "\f120" / ''; | ||
|
|
@@ -584,6 +588,23 @@ html:lang(he-il) .rtl #wpadminbar * { | |
| content: "\f102" / ''; | ||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-site-name.has-site-icon > .ab-item { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 6px; | ||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-site-name.has-site-icon > .ab-item:before { | ||
| content: none; | ||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-site-name > .ab-item .site-icon { | ||
| width: 20px; | ||
| height: 20px; | ||
| background: #f0f0f1; /* matching my-account (user avatar) node's background */ | ||
| border-radius: 2px; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| /** | ||
|
|
@@ -905,7 +926,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-name:not(.has-site-icon) > .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, | ||
|
|
@@ -920,6 +941,16 @@ html:lang(he-il) .rtl #wpadminbar * { | |
| -moz-osx-font-smoothing: grayscale; | ||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-site-name > .ab-item .site-icon { | ||
| position: absolute; | ||
| top: 9px; | ||
| left: 12px; | ||
| width: 28px; | ||
| height: 28px; | ||
| margin: 0; | ||
| border-radius: 4px; | ||
| } | ||
|
|
||
| #wpadminbar #wp-admin-bar-appearance { | ||
| margin-top: 0; | ||
| } | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.