MozillaZine

Needing a userstyle.. for the urlbar dropdownmenu..

User Help for Mozilla Firefox
dickvl

User avatar
 
Posts: 52181
Joined: July 18th, 2005, 3:25 am

Post Posted August 25th, 2017, 7:15 pm

Highlight is just a name for a specific default color to highlight an item.
Such defaults are usually the defaults as used in your operating system.

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 2nd, 2017, 6:50 am

How could i turn the title & url text in this color:
#020944

dickvl

User avatar
 
Posts: 52181
Joined: July 18th, 2005, 3:25 am

Post Posted September 2nd, 2017, 4:16 pm

Does this work for you?
Code: Select all
#PopupAutoCompleteRichResult .ac-title-text {color:#020944!important; font-size:12px!important;}
#PopupAutoCompleteRichResult .ac-url-text {color:#020944!important; font-size:14px!important;}

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 2nd, 2017, 4:47 pm

Thanks dickvl, but strangely, it doesn't affect titles, only urls ((

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 2nd, 2017, 4:56 pm

I've tested something & it worked ))

Code: Select all
#PopupAutoCompleteRichResult .ac-title
{color:#0443D9 !important; font-size:15px !important;}
#PopupAutoCompleteRichResult .ac-url-text
{color:#6070FB !important; font-size:14px !important;}


i removed the string "-text" from title.
Last edited by delicacy1 on September 7th, 2017, 5:58 am, edited 3 times in total.

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 2nd, 2017, 5:23 pm

How could i remove the Visit (suggestive) grey background that wraps a found string like youtube.com

Image

dickvl

User avatar
 
Posts: 52181
Joined: July 18th, 2005, 3:25 am

Post Posted September 3rd, 2017, 2:26 pm

Could be something like this for the selector:
Code: Select all
.autocomplete-richlistitem[type*="heuristic"] *|span.ac-emphasize-text {background-color: red !important}

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 3rd, 2017, 2:34 pm

You rock dickvl :)

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 3rd, 2017, 3:01 pm

i found another one dickvl, it doesn't work for all urls.. look at the pic below,
2 exemples, you can obtain that red background that i don't want either
by starting to type different letters..

Image

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 3rd, 2017, 3:07 pm

even if i use the term transparent when i'd rather have "none", i get an empty rectangle that wraps the text.. using this:

Code: Select all
.autocomplete-richlistitem[type*="heuristic"] *|span.ac-emphasize-text {background-color: transparent !important}
Last edited by delicacy1 on September 3rd, 2017, 3:17 pm, edited 1 time in total.

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 3rd, 2017, 3:16 pm

Resolved, googling part of your code online..

Code: Select all
#PopupAutoCompleteRichResult richlistitem[type*="heuristic"] { display:none !important; }

dickvl

User avatar
 
Posts: 52181
Joined: July 18th, 2005, 3:25 am

Post Posted September 3rd, 2017, 3:47 pm

Yes.
That is part of what I use to hide them, but I assumed that you would want to keep this text:
Code: Select all
  #PopupAutoCompleteRichResult richlistitem:first-of-type[type*="heuristic"],
  #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="searchengine"],
  #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="visiturl"],
  #PopupAutoCompleteRichResult richlistitem:first-of-type[actiontype="keyword"] {
    display:none !important;
  }


Code: Select all
.autocomplete-richlistitem[type*="heuristic"] *|span.ac-emphasize-text {
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 3rd, 2017, 4:14 pm


dickvl

User avatar
 
Posts: 52181
Joined: July 18th, 2005, 3:25 am

Post Posted September 3rd, 2017, 4:52 pm

You removed the icons, so you need to add some margin-left to the text.

Does this work?
Code: Select all
.ac-title {margin-left: 5px !important;}

delicacy1
 
Posts: 270
Joined: September 28th, 2016, 11:25 am

Post Posted September 3rd, 2017, 5:06 pm

Ok:

Code: Select all
.ac-title , .ac-url-text {margin-left: 7px !important;}


how could i finally change the color of the grey background rectangle that appears in all references of the dropdown menu when i add letters in the urlbar ?

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 5 guests