Skip to content

Commit

Permalink
Fix: Padding - Mac's bookmark menu #505
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Nov 15, 2022
1 parent de52976 commit a5cdc0c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
12 changes: 11 additions & 1 deletion css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -8782,13 +8782,23 @@
/* Bookmark Popup - As Arrow Panel */
#PersonalToolbar menupopup menuitem,
#PersonalToolbar menupopup menu {
padding-inline: calc(var(--arrowpanel-menuicon-padding) + var(--arrowpanel-menuitem-padding-inline)) !important;
padding-inline: var(--arrowpanel-menuitem-padding-inline) !important;
}
/* Bookmark Popup - None icon menu */
menupopup:is(#BMB_bookmarksPopup) menuitem:not(.menuitem-iconic, [disabled="true"]),
menupopup:is(#BMB_bookmarksPopup) menu:not(.menu-iconic) {
padding-inline-start: calc(var(--arrowpanel-menuitem-padding-inline) + 3px) !important;
}
#PersonalToolbar menupopup[placespopup="true"] menuitem:not(.menuitem-iconic, [disabled="true"]),
#PersonalToolbar menupopup[placespopup="true"] menu:not(.menu-iconic) {
padding-inline-start: calc(var(--arrowpanel-menuitem-padding-inline) + 1px) !important;
}
menupopup:is(#BMB_bookmarksPopup) menuitem:not(.menuitem-iconic, [disabled="true"]) > .menu-text,
menupopup:is(#BMB_bookmarksPopup) menu:not(.menu-iconic) > .menu-text,
#PersonalToolbar menupopup[placespopup="true"] menuitem:not(.menuitem-iconic, [disabled="true"]) > .menu-text,
#PersonalToolbar menupopup[placespopup="true"] menu:not(.menu-iconic) > .menu-text {
padding-inline-start: var(--context-menu-mac-padding) !important;
}
}
@supports -moz-bool-pref("userChrome.icon.context_menu") {
/** Context Menu - Icons ******************************************************/ /*= tabContextMenu ===========================================================*/
Expand Down
10 changes: 9 additions & 1 deletion src/icons/layout/_bookmark_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,19 @@ $_bookmarkToolbarMenus: selector.nest(
/* Bookmark Popup - As Arrow Panel */
#PersonalToolbar menupopup menuitem,
#PersonalToolbar menupopup menu {
padding-inline: calc(var(--arrowpanel-menuicon-padding) + var(--arrowpanel-menuitem-padding-inline)) !important;
padding-inline: var(--arrowpanel-menuitem-padding-inline) !important;
}

/* Bookmark Popup - None icon menu */
@include _layoutBookmarkPopup() {
padding-inline-start: calc(var(--arrowpanel-menuitem-padding-inline) + 3px) !important;
}
@include _layoutBookmarkToolbar() {
padding-inline-start: calc(var(--arrowpanel-menuitem-padding-inline) + 1px) !important;
}
@include _layoutBookmarkMenu() {
> .menu-text {
padding-inline-start: var(--context-menu-mac-padding) !important;
}
}
}

0 comments on commit a5cdc0c

Please sign in to comment.