Skip to content

Commit

Permalink
Fix: Icons - Sidebar menupopup for v106 #749
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Aug 7, 2023
1 parent b3edd20 commit bf37686
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
18 changes: 9 additions & 9 deletions css/leptonChrome.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/icons/layout/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ $_layoutCommonMenus: (
@include _layoutInitPaddingMenus {
@include _layout_init_padding;
}
#sidebarMenu-popup:has(menuitem) {
@include _layout_init_margin;
#sidebarMenu-popup:is(menupopup):not(panel) {
--context-menu-background-padding: var(--context-menu-background-padding-default);
padding-inline-start: 0 !important;

:not(menu, #ContentSelectDropdown, #context-navigation) > & > #{$_iconMenuitem} {
padding-inline-start: 28px !important;
margin-inline-start: var(--arrowpanel-menuitem-margin-inline) !important;
}
}

Expand Down
6 changes: 1 addition & 5 deletions src/icons/layout/_menu_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $_libraryMenuitem: "menupopup:is(#organizeButtonPopup, #maintenanceButtonPopup)
$_libraryMenu: "menupopup:is(#viewMenuPopup, #maintenanceButtonPopup) > #{$_iconMenu}";
$_sendTabMenuPopup: "#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice-popup";
$_otherPopupMenuitem: "menupopup:is(#{$_sendTabMenuPopup}, #frame > menupopup) > menuitem";
$_otherIconMenu: ".openintabs-menuitem, #blockedPopupDontShowMessage, #BMB_viewBookmarksToolbar, #sidebarMenu-popup";
$_otherIconMenu: ".openintabs-menuitem, #blockedPopupDontShowMessage, #BMB_viewBookmarksToolbar, #sidebarMenu-popup:is(menupopup)";

//-- Mixin ---------------------------------------------------------------------
// Init Menu
Expand Down Expand Up @@ -79,10 +79,6 @@ $_initialMenus: $_initialMenus + "," +
background-position: var(--uc-menu-background-position) var(--context-menu-background-padding) center !important;
padding-inline-start: var(--context-menu-background-padding) !important;
}
@mixin _layout_init_margin() {
// Fix sidebar position
margin-inline-start: calc((var(--context-menu-background-padding) + var(--panel-shadow-margin, 4px)) * -1) !important
}

@mixin _layout_win_native_menu_popup() {
@include NativeMenuPopup {
Expand Down

0 comments on commit bf37686

Please sign in to comment.