Skip to content

Instantly share code, notes, and snippets.

@soulhotel
Last active September 12, 2024 21:36
Show Gist options
  • Save soulhotel/efff3fc64f1871515498326b953969d3 to your computer and use it in GitHub Desktop.
Save soulhotel/efff3fc64f1871515498326b953969d3 to your computer and use it in GitHub Desktop.
Firefoxcss, customize right click menu (colorize context menu)
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
So you want to colorize your right click menu?
context menu background color
context menu border color (sync border color with background - no ugly border)
text color
hovered item color
last line targets the elements submenus
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
menupopup{
--panel-background: rgba(5, 5, 5, .95) !important;
--panel-border-color: rgba(15, 15, 15, 1) !important;
--panel-color: white !important;}
menuitem:hover{
background-color: #2A4045 !important;}
menu:where([_moz-menuactive="true"]:not([disabled="true"])), menuitem:where([_moz-menuactive="true"]:not([disabled="true"])) {
background-color: #2A4045 !important;
color: white !important;}
@soulhotel
Copy link
Author

@Achille-Grs Although there is a way to cheat it, i had to make the blurred image on my own in paint.net, if you find a better blurred image and make it 590x660ish youll be good.

this technically gives me a blurred background on extended url bar:

#urlbar[breakout][breakout-extend][open] {
  background-color: transparent !important;
  background-image: url(chrome/urlbar.png) !important;}

urlbar
Screenshot_4

@Achille-Grs
Copy link

Achille-Grs commented Feb 24, 2024

Thank you very very much! You are a kind person and you helped me a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment