My favorites | Sign in
Project Logo
                
Search
for
Updated Mar 18, 2008 by legege
Labels: Featured
HowTo  
FAQ

FAQ

userChrome.css

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

.searchbox-token {
  background: #dee7f8;
  color: #000;
}

.searchbox-token:hover {
  border-color: #6d95e0;
  background: #bbcef1;
}

.searchbox-token:hover:active {
  border-color: #608ce0;
  background: #a0c9ff;
}

.searchbox-token[highlight="term-1"] {
  background-color: #fbed73;
  border-color: #e1d467;
}

.searchbox-token[highlight="term-1"]:hover {
  background-color: #fbe313;
  border-color: #dac400;
}

.searchbox-token[highlight="term-1"]:hover:active {
  background-color: #f1d700;
  border-color: #d1ba00;
}

...

userContent.css

.searchwp-term {
  color: black;
}

.searchwp-term[highlight="term-1"] {
  background-color: #fbed73;
}

.searchwp-term[highlight="term-2"] {
  background-color: #ffb18c;
}

.searchwp-term[highlight="term-3"] {
  background-color: #ffd281;
}

.searchwp-term[highlight="term-4"] {
  background-color: #c3f991;
}

.searchwp-term[highlight="term-5"] {
  background-color: #e9b8ff;
}

Shortcut keys


Comment by miochan.jp, Jun 16, 2008

Please teach the key command for keconfig.

Comment by scottgil...@yahoo.com, Jul 23, 2008

Please include the following link. It describes how a user can create/modify userContent.css and userChrome.css as mentioned in the answer to "How do I change highlighting colors?" http://support.mozilla.com/en-US/kb/Editing+configuration+files

Comment by scottgil...@yahoo.com, Jul 23, 2008

How do I make the search term buttons line-up with the text?

I added the following to userChrome.css (in the chrome directory in my Firefox profile directory) to make the search term buttons line up exactly with the text. This leaves less room between buttons for clicking to edit the text, but it ensures that the text will not change position when switching between text and button states. The effect fails in certain situations, such as when quotes are used, words are repeated, or the text is too long. Note that the -moz-margin-end (and possibly other settings) may need adjusting if you use a different font (I'm using Verdana 8 on Windows XP).

.searchbox-tokens-container {
  -moz-margin-start: 0px !important;
  -moz-margin-end: 0px !important;
}

.searchbox-token {
  -moz-border-radius: 0.3em !important;
  -moz-margin-start: 0em !important;
  -moz-margin-end: .18em !important;
  padding: 0 0.0em !important;
}
Comment by amstel001, May 01, 2009

Toggle highlighting by F8 doesn't work with me. Probably I've got a conflict with other add-ons. Couln't that be done in the options? (Maybe just set minimum keyword length to 1000 and call it "never" in the existing drop down menu) Otherwise I would have to temper with the css because I use the search buttons, and not highlighting so much. Regards, Frank.


Sign in to add a comment
Hosted by Google Code