Skip to content

Commit

Permalink
Masterbar: Show notification+help icons on mobile (#38438)
Browse files Browse the repository at this point in the history
* Masterbar: Show notification/help icon on small screen sizes

* changelog

* Remove currentColor from background

* Update background color for overlapping issue on mobile

* Update background color in masterbar package

* changelog

* Don't use colors.css

* Add a comment

---------

Co-authored-by: okmttdhr <[email protected]>
  • Loading branch information
lupus2k and okmttdhr authored Jul 22, 2024
1 parent 21ce5f9 commit 1e73849
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Show notifications and help icons on mobile
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,63 @@
/**
* Profile section of the admin bar
*/
#wpadminbar #wp-admin-bar-top-secondary {
float: none;
position: absolute;
right: 0;
#wpadminbar {
// Add background color to the right side of the admin bar for the mobile view
.quicklinks {
background-color: inherit;
#wp-admin-bar-top-secondary {
background-color: inherit;
}
}

#wp-admin-bar-top-secondary {
float: none;
position: absolute;
right: 0;

@media (max-width: 782px) {
#wp-admin-bar-help-center {
display: block !important;
width: 52px !important;
margin-right: 0 !important;
.ab-item {
width: 52px;
svg {
width: 36px;
height: 36px;
padding: 4px 8px;
}
}
}

#wp-admin-bar-notes {
display: block !important;
width: 52px !important;
.ab-item {
justify-content: center;

.noticon-bell {
width: 36px;
height: 46px;
top: 0;

&:before {
background-position-y: bottom;
background-position-x: center;
right: 0;
width: 36px !important;
height: 40px !important;
background-size: contain;
}
}
}

#wpnt-notes-panel2 {
top: 46px;
}
}
}
}
}


Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Add background color to address overlapping

0 comments on commit 1e73849

Please sign in to comment.