mirror of
https://github.com/zotero/zotero.git
synced 2026-09-07 08:26:14 +00:00
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.
24 lines
497 B
SCSS
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);
|
|
}
|
|
}
|
|
};
|