zotero/scss/linux/_menu.scss
Dan Stillman 300305a9fb fx153: Set menu icons via --menuitem-icon for in-content menus
The menu icon element is now an <html:img> that renders the 'image'
attribute or 'content: var(--menuitem-icon)', and 'list-style-image' is
ignored, so iconic menuitems showed broken-image placeholders on
Windows and Linux. list-style-image is kept for native macOS menus,
which still read it.
2026-08-04 14:42:39 -04:00

24 lines
497 B
SCSS

menu,
menuitem {
.menu-icon[srcset] {
-moz-default-appearance: none;
}
}
menulist {
@include focus-ring;
}
@each $cls, $icon in $menu-icons {
.zotero-menuitem-#{$cls} {
// If icon starts with "light-dark:", use light and dark icon
@if str-slice($icon, 0, 11) == "light-dark:" {
@include focus-states using ($color) {
@include svgicon-menu(str-slice($icon, 12), $color, "16");
}
}
@else {
@include svgicon-menu($icon, "universal", "16", false, false, false);
}
}
};