MozillaZine

Find color for text results not found

User Help for Mozilla Firefox
jetspeedz
 
Posts: 92
Joined: January 4th, 2013, 12:11 am

Post Posted July 5th, 2018, 2:31 pm

I couldn't find any CSS code to change the background color of Find (CTRL+F) when text is not found. I'm using the black theme and it defaults to a purple color. Was hoping to change it to another color. There are some old about:config changes which do not apply. I assume there is no way to change this but figured I would ask the experts here.

Cheers

morat
 
Posts: 2865
Joined: February 3rd, 2009, 6:29 pm

Post Posted July 5th, 2018, 4:15 pm

Try this:

Code: Select all
/* Firefox userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.findbar-textbox[status="notfound"] {
  background-color: coral !important;
  color: white !important;
}

http://kb.mozillazine.org/UserChrome.css

You can use the browser toolbox to find the css selector.

http://developer.mozilla.org/en-US/docs ... er_Toolbox

jetspeedz
 
Posts: 92
Joined: January 4th, 2013, 12:11 am

Post Posted July 5th, 2018, 4:19 pm

Thanks you are a wizard, that worked perfect.

While I have your attention I figured out what it takes to change the Search Bar(search engine bar) background color using the code below but I can't seem to figure out how to change the drop down suggestion color to have a black background. I've tried different things but it just does not work. Any ideas is appreciated.

/*This changes the search bar background color*/
#searchbar .searchbar-textbox{
background-color: #000000 !important;
}

This does not work to change the drop down to black for the background
#PopupSearchAutoComplete .searchbar-engine-one-off-item[tooltiptext]:hover, .searchbar-engine-one-off-item[tooltiptext][selected] {
color: #FFFFFF !important;
background-color: #000000 !important;

jetspeedz
 
Posts: 92
Joined: January 4th, 2013, 12:11 am

Post Posted July 5th, 2018, 5:19 pm

Got the search figured out for anyone interested.

#PopupSearchAutoComplete {
background-color: black !important;
color: white !important;
}

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 8 guests