From bf2abaf13894576861f7c13aeb3bfd1dcc37191b Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 5 Apr 2019 17:25:33 +0300 Subject: [PATCH] New file --- chrome/dark_context_menus.css | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 chrome/dark_context_menus.css diff --git a/chrome/dark_context_menus.css b/chrome/dark_context_menus.css new file mode 100644 index 0000000..f48f52b --- /dev/null +++ b/chrome/dark_context_menus.css @@ -0,0 +1,33 @@ +/* Makes context menus dark */ +/* Uses dark theme colors but does not respect dark theme variables (they wouldn't work on sidebar context menu) */ + +:root{ + --uc-menu-bkgnd: rgb(74,74,79); + --uc-menu-color: rgb(230,230,230); + --uc-menu-dimmed: rgba(255,255,255,0.1); + --uc-menu-disabled: rgb(50,50,50); +} + +menupopup, +menu, +menuitem{ -moz-appearance: none !important; } + +menuitem, +menu{ min-height: 1.8em } + +menupopup, +#context-navigation{ + color: var(--uc-menu-color) !important; + padding: 2px; + background-color: var(--uc-menu-bkgnd) !important; + border-color: var(--uc-menu-disabled) !important; +} + +menu:hover, +menu[_moz-menuactive], +menu[open], +menuitem:hover, +menuitem[_moz-menuactive]{ background-color: var(--uc-menu-dimmed) !important; color: inherit !important; } + +menu[disabled="true"], +menuitem[disabled="true"]{ color: var(--uc-menu-disabled) !important; } \ No newline at end of file