News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Jump to menu blue color change

Started by Xtro, April 08, 2025, 03:36:52 PM

Previous topic - Next topic

Xtro

How do I change the blue color of the link bar on the "jump to" menu?

Kindred

use the browser inspect tool to find the CSS for your theme... since the default theme is not blue int he jump to -- it may be different

#display_jump_to_select, #message_index_jump_to_select, #search_jump_to_select, #quick_mod_jump_to_select
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Xtro

I found this code but don't see any way to change the color. Maybe there is a way to add it?
I've looked at many different themes and this is blue on every one, even when it doesn't match the theme.

/* The category separator string is 29 dashes */
#display_jump_to_select,
#message_index_jump_to_select,
#search_jump_to_select,
#quick_mod_jump_to_select {
   width: 29ch;
}

Kindred

I mean... it's not blue HERE on this site, using the default theme...

It's not blue on my test site https://test2.turtleshellprod.com/index.php?board=1.0

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori


Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Xtro

Quote from: Kindred on April 14, 2025, 07:45:33 PM
Quote from: Illori on April 14, 2025, 07:31:41 PM

it is blue on this site.

That's background,  not the link..

This is what I want. How do I change this blue color to something else?

Kindred

strange -- it's grey for me here....

anyway -- looking it up....  it apparently requires javascript to do.
You can change the color of the CURRENTLY selected board in the dropdown using #message_index_jump_to_select option:active {background-color:red;}

however, option:hover, option:focus, option:checked all have no effect...
 
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sesquipedalian

#8
It sounds like you are trying to change how the contents of the select menu are styled—or more precisely, how the option elements within the select menu are styled. If so, I'm afraid there's nothing you can do. The styling used for option elements is determined by the browser alone, and it will vary from browser to browser. It is impossible to change it via the website's CSS.

The JavaScript option that @Kindred mentioned involves a process that essentially obliterates the select menu and replaces it with a different thing built manually from JavaScript. Doing so is a painful process, and the result is somewhat unreliable.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

TwitchisMental

Uhh guys that can definitely be styled. 

It is a combination of editing this section -

input, button, select, textarea
and adding -

option:not(:checked) {
background: insertcolorhere!important;
}
option:hover {
background: insertcolorhere!important;
}

If you would like a live example of this see my GamingX theme.

Kindred

Nope..  that didn't work for me.  That was the first thing that I tried.

Seriously,  every reference question in stack overflow, etc says that it requires js
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sesquipedalian

Which browser are you using when you see that, @TwitchisMental? Did you test with other browsers?
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Diego Andrés

Probably Firefox.
Chromium does have the new select styling now behind a feature flag, highly unlikely it releases this year though.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Sesquipedalian

Interesting. Hopefully one day all browsers will add support for that.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

TwitchisMental

#14
Interesting... so it works in Firefox and Edge. Chrome the only thing not showing the same is the option hover bg color.

Advertisement: