Skip to content

Commit

Permalink
Fix: BMB_bookmarksPopup - padding at Win10 #136
Browse files Browse the repository at this point in the history
/* Global */
menupopup > menuitem,
menupopup > menu {
padding-inline-start: 1em;
}

.menu-iconic > .menu-iconic-left,
.menuitem-iconic > .menu-iconic-left {
    margin-inline-end: 8px;
}
/* 16px + 8px => 24px */

menupopup:is(#goPopup, #bookmarksMenuPopup) menuitem:not(.menuitem-iconic, [disabled="true"]),
menupopup:is(#goPopup, #bookmarksMenuPopup) menu:not(.menu-iconic) {
  margin-inline: 0 !important;
  padding-inline-start: calc(1em + 16px + 8px) !important;
  background-position: left 1em center !important;
}

/*BMB*/
#BMB_bookmarksPopup .subviewbutton {
    padding: var(--arrowpanel-menuitem-padding); /* 5px */
}
.subviewbutton {
  margin-inline: var(--arrowpanel-menuicon-padding);
}

#BMB_bookmarksPopup .subviewbutton > .menu-iconic-text, #PlacesToolbar menu > .menu-iconic-text, #PlacesToolbar menuitem > .menu-iconic-text, .addon-banner-item > .toolbarbutton-text, .subviewbutton-iconic > .toolbarbutton-text, .subviewbutton[image] > .toolbarbutton-text, .subviewbutton[targetURI] > .toolbarbutton-text, .subviewbutton.bookmark-item > .toolbarbutton-text, .subviewbutton[checked="true"] > .toolbarbutton-text {
    padding-inline-start: 8px;
}
  • Loading branch information
black7375 committed Sep 11, 2021
1 parent 6559d6e commit 047d768
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions userChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -2259,6 +2259,23 @@
* #BMB_bookmarksPopup: looks like arrow panel
*/

/* Windows */
@media (-moz-os-version: windows-win10) {
/* Bookmark Popup - None icon menu */
#BMB_bookmarksPopup,
#PersonalToolbar {
--context-menu-background-padding: var(--arrowpanel-menuitem-padding);
}
menupopup:is(#BMB_bookmarksPopup) menuitem:not(.menuitem-iconic, [disabled="true"]),
menupopup:is(#BMB_bookmarksPopup) menu:not(.menu-iconic),
#PersonalToolbar menupopup[placespopup="true"] menuitem:not(.menuitem-iconic, [disabled="true"]),
#PersonalToolbar menupopup[placespopup="true"] menu:not(.menu-iconic) {
margin-inline: var(--arrowpanel-menuitem-padding) !important;
padding-inline-start: calc(var(--arrowpanel-menuicon-padding) + 16px + 8px) !important;
background-position: left calc(var(--arrowpanel-menuicon-padding)) center !important;
}
}

/* Linux */
@media (-moz-gtk-csd-available) {
/* Global Menu */
Expand Down

0 comments on commit 047d768

Please sign in to comment.