News:

Wondering if this will always be free?  See why free is better.

Main Menu

Unsetting/Modifying a bbc_color class

Started by spiros, December 19, 2019, 08:37:26 AM

Previous topic - Next topic

spiros

Unsetting/Modifying a bbc_color class

I am experimenting with the SunRise theme that has a dark mode option.

Is it possible for already existing bbc_color marked text, to have a different colour, or unset its colour when switching to dark mode? For example, when entering this on SMF:

[color=navy]Test[/color]

the output is

<span style="color: navy;" class="bbc_color">Test</span>

Can any color: navy instances have a different colour output in dark mode?

Illori

as long as your theme has a different css for the dark mode you could add something like this to the end of the file.

span[style*="color: blue"] { color: #bcbcbc !important;}
span[style*="color: navy"] { color: #bcbcbc !important;}
span[style*="color: black"] { color: #bcbcbc !important;}
span[style*="color: #000000"] { color: #bcbcbc !important;}
span[style*="color: #0000ff"] { color: #bcbcbc !important;}


that should do the trick, just need to modify it for which color you are looking for and which color to change it to.

spiros


Advertisement: