From fb987ad073f4ff96f053d6dc788a91e8a6b3840f Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 6 Dec 2020 10:14:41 +0200 Subject: [PATCH] create custom_menupopup_check_icons.css --- chrome/custom_menupopup_check_icons.css | 19 +++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 chrome/custom_menupopup_check_icons.css diff --git a/chrome/custom_menupopup_check_icons.css b/chrome/custom_menupopup_check_icons.css new file mode 100644 index 0000000..3a77d16 --- /dev/null +++ b/chrome/custom_menupopup_check_icons.css @@ -0,0 +1,19 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/custom_menupopup_check_icons.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + + menuitem:is([type="checkbox"],[type="radio"]) .menu-iconic-left{ + -moz-appearance: none !important; + height: 14px; + margin-block: 4px; + margin-inline: 3px 8px !important; + background-repeat: no-repeat; + background-size: contain; + background-position: center; + -moz-context-properties: fill; + fill: currentColor; + } + + menuitem[checked] .menu-iconic-left{ + background-image: url("chrome://global/skin/icons/check.svg"); + background-color: transparent + } \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 845d6b8..a8eb969 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -109,5 +109,6 @@ "round_ui_items.css":["buttons","icon","menu","tabs","toolbars","bookmarks"], "curved_tabs.css":["tabs","tab"], "theme_aware_modal_prompts.css":["effect","dark-mode","colors","popup"], -"centered_top_statuspanel.css":["status"] +"centered_top_statuspanel.css":["status"], +"custom_menupopup_check_icons.css":["icon","menu","minimal","popup"] } diff --git a/tags.csv b/tags.csv index 23370e2..81a4316 100644 --- a/tags.csv +++ b/tags.csv @@ -109,3 +109,4 @@ round_ui_items.css,buttons,icon,menu,tabs,toolbars,bookmarks curved_tabs.css,tabs,tab theme_aware_modal_prompts.css,effect,dark-mode,colors,popup centered_top_statuspanel.css,status +custom_menupopup_check_icons.css,icon,menu,minimal,popup