May 31, 2020, 12:04 AM

News:

How many easter eggs have you found....


Dropdown Background colour 2.1 RC+

Started by lesmond, Mar 07, 2020, 12:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lesmond

Mar 07, 2020, 12:36 PM Last Edit: Mar 07, 2020, 03:54 PM by lesmond
Does anyone know where the blue rollover/hover background colours are defined for these dropdown boxes?

They are the same no matter what theme you use (or in my case try to make) and in all dropdown boxes :(

I have looked in every CSS file but I just cant find the section, and searched for "hover" "dropdown"  :dontknow

All marked with a red arrow.



The only person who got all his work done by Friday was Robinson Crusoe

SychO

Those are browser default, you can't customize them. If you want a fancy dropdown you'll need to use javascript as well as css

lesmond

Thanks @SychO I had a feeling it may be that, after seeing this code in dev tools with chrome, but not in the actual index.css file
::selection {
 text-shadow: none;
 background: #99d4ff;
 color: rgba(0, 0, 0, 0.6);
}

I did notice that the above code has been added to the default themes index.css on GH now here so I manually added that to my theme and changed the colour, it didnt make any difference.  :dontknow

The only person who got all his work done by Friday was Robinson Crusoe

SychO

That changes the style of selected text