2023-11-27 12:52:14 +00:00
|
|
|
$item-type-icons: (
|
2023-11-15 09:07:54 +00:00
|
|
|
attachments-file: "document",
|
2023-11-27 12:52:14 +00:00
|
|
|
attachments-link: "attachment-link",
|
|
|
|
attachments-pdf: "attachment-pdf",
|
|
|
|
attachments-snapshot: "attachment-snapshot",
|
|
|
|
attachments-epub: "attachment-epub",
|
|
|
|
attach-note: "note",
|
2024-07-15 15:47:07 +00:00
|
|
|
find-file: "attachment-pdf",
|
2023-11-27 12:52:14 +00:00
|
|
|
convert-to-book-section: "book-section",
|
|
|
|
convert-to-book: "book",
|
2023-11-15 09:07:54 +00:00
|
|
|
);
|
|
|
|
|
2023-11-27 12:52:14 +00:00
|
|
|
@each $cls, $icon in $item-type-icons {
|
2023-11-15 09:07:54 +00:00
|
|
|
.zotero-menuitem-#{$cls} {
|
|
|
|
@include focus-states using ($color) {
|
|
|
|
@include svgicon-menu($icon, $color, "16", "item-type");
|
|
|
|
}
|
|
|
|
}
|
2023-11-27 12:52:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
$menu-icons: (
|
|
|
|
attach: "attachment",
|
|
|
|
attachments-web-link: "link",
|
|
|
|
view-online: "globe",
|
2024-05-14 15:35:37 +00:00
|
|
|
show-file: "folder-open",
|
2023-11-27 12:52:14 +00:00
|
|
|
view-external: "page",
|
2023-12-06 01:09:04 +00:00
|
|
|
library-lookup: "library-lookup",
|
2023-11-27 12:52:14 +00:00
|
|
|
new-feed: "feed",
|
|
|
|
note: "note",
|
|
|
|
new-saved-search: "saved-search",
|
|
|
|
show-duplicates: "duplicate",
|
|
|
|
show-unfiled: "unfiled",
|
|
|
|
show-retracted: "retracted",
|
|
|
|
sync: "sync",
|
|
|
|
new-collection: "new-collection",
|
|
|
|
edit-collection: "rename",
|
|
|
|
edit-feed: "edit",
|
|
|
|
refresh-feed: "sync",
|
|
|
|
delete-collection: "delete-collection",
|
|
|
|
hide-collection: "hide",
|
|
|
|
remove-items: "delete-collection",
|
|
|
|
show-in-library: "library",
|
|
|
|
move-to-trash: "trash",
|
|
|
|
delete-from-lib: "empty-trash",
|
|
|
|
duplicate-item: "duplicate-item",
|
|
|
|
merge-items: "merge",
|
|
|
|
export: "export",
|
|
|
|
restore-to-library: "restore",
|
|
|
|
create-bibliography: "list-number",
|
|
|
|
create-report: "report",
|
|
|
|
retrieve-metadata: "retrieve-metadata",
|
|
|
|
unrecognize: "restore",
|
|
|
|
reindex: "reindex",
|
|
|
|
create-parent: "page",
|
|
|
|
rename-from-parent: "rename",
|
|
|
|
create-note-from-annotations: "light-dark:note-annotation",
|
|
|
|
add-to-collection: "new-collection",
|
|
|
|
new-tab: "new-tab",
|
|
|
|
new-window: "new-window",
|
2023-12-01 07:43:43 +00:00
|
|
|
pin: "pin",
|
|
|
|
unpin: "pin-remove",
|
|
|
|
expand-all: "expand-all",
|
|
|
|
collapse-others: "collapse-others",
|
2023-11-27 12:52:14 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
@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, (var(--fill-secondary), var(--fill-secondary)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2023-12-01 07:43:43 +00:00
|
|
|
|
|
|
|
#zotero-collectionmenu, #zotero-itemmenu {
|
|
|
|
@include macOS-hide-menu-icons;
|
|
|
|
}
|
2024-03-22 05:23:31 +00:00
|
|
|
|
|
|
|
#zotero-new-collection-menu {
|
|
|
|
image {
|
|
|
|
-moz-context-properties: fill, fill-opacity;
|
2024-05-22 18:41:02 +00:00
|
|
|
fill: currentColor;
|
2024-03-22 05:23:31 +00:00
|
|
|
}
|
|
|
|
}
|