Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: danielwmoore on December 22, 2011, 12:22:00 PM

Title: Group Color to Background Color
Post by: danielwmoore on December 22, 2011, 12:22:00 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3283)

This mod was developed as an alternative to the Group Color to CSS mod (http://custom.simplemachines.org/mods/index.php?mod=3102).

When you have different color themes on your site, the group colors do not always appear well in every theme.

One alternative is to convert it to CSS and assign colors for each and every theme.

Another alternative, the one I have come up with (this mod), changes the color assigned to the group to a "text background" color, similar to using a highlighter over the text.  It uses the CSS3 border radius for browsers that support it to provide a nicer highlight.

I believe this alternative is more efficient because:

This has been tested with Curve on a 2.01 installation only.
Title: Re: Group Color to Background Color
Post by: chinaren on December 30, 2011, 09:51:56 PM
Well, installed it and worked fine on my 2.0.1, but then uninstalled it, as it looked a bit messy IMO. 

Thanks for the effort though. :)
Title: Re: Group Color to Background Color
Post by: danielwmoore on December 31, 2011, 06:35:03 AM
Yeah, it does look a bit messy if you're not using a CSS3 capable browser.  Looks good on CSS3 though.

I'm just not supporting older browsers.  What can I say.  Also, it doesn't really go well with Curve.  I made this for a custom theme that has 53 color variations (including background colors), all in use on one site.  No way you can read the member colors in all the variations any other way.