jscher2000 / Show-History-Frequent-Sites-button-extension

Replacement for Firefox "Show History" button to list frequent sites.
Mozilla Public License 2.0
3 stars 0 forks source link

Maybe not an issue, just a question. #7

Open Thalon77 opened 3 years ago

Thalon77 commented 3 years ago

Hi, first of all thanks a lot for the extension, I really appreciate it now that Firefox removed its droplist. I have a question: i'm using a custom CSS code (the one made by Aris-t1 you can find also here on Github) to change Firefox appearence to something similar to what it was years ago, I selected an aero blue color for the elements hovered by the cursor but i need to apply a similar color to the list created by your extension (the hovered text has the grey background of Firefox default theme), is there a way to change that (don't think the two color options I see can change that, correct me if I'm wrong)?

jscher2000 commented 3 years ago

I don't have any hover coloring built into the style sheet, so if you have rules that apply to extension popups, they should work, I think.

Is it this file? https://github.com/Aris-t2/CustomCSSforFx/blob/master/fx60-90/css/generalui/popup_items_hover_appearance_aero.css

You could add this to a userContent.css file (the lesser known cousin of userChrome.css):

/* Show History Frequent Sites Button - list */
#frecentlist li:hover {
  color: inherit !important;
  background-color: transparent !important;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.4) 0px, transparent 0px),
    linear-gradient(to left, rgba(255,255,255,0.4) 0px, transparent 0px),
    linear-gradient(to top, rgba(255,255,255,0.3) 0px, transparent 0px),
    linear-gradient(to bottom, rgba(163,196,247,0.2), rgba(122,180,246,0.2)) !important;
  border-radius: 6px !important;
  outline: 1px solid rgba(124,163,206,0.7) !important;
  -moz-outline-radius: 3px !important;
  outline-offset: -1px !important;
}

I think it's very unlikely that a website has an element with id="frecentlist" but if it does, this also would bleed over to that list.