From a5cdc0c25ef49ebb3b17832490cabd15c6467cca Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Wed, 16 Nov 2022 01:39:10 +0900 Subject: [PATCH] Fix: Padding - Mac's bookmark menu #505 --- css/leptonChrome.css | 12 +++++++++++- src/icons/layout/_bookmark_menu.scss | 10 +++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index f83ec3e4..1698a346 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -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 ===========================================================*/ diff --git a/src/icons/layout/_bookmark_menu.scss b/src/icons/layout/_bookmark_menu.scss index ea3f2adc..98c9aaa3 100644 --- a/src/icons/layout/_bookmark_menu.scss +++ b/src/icons/layout/_bookmark_menu.scss @@ -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; + } + } }