Remove inline colors
I notice that there are some colors in ElkArte that are set using inline styles, such as the color designating a user as an administrator or a moderator in the "online now" section of the index. This is rather bothersome for custom theming.
Re: Remove inline colors
Reply #1 –
You can change those colors in ACP -> Members -> Membergroups -> Edit membergroups
Re: Remove inline colors
Reply #5 –
Yeah but that's the theme author's problem. The devs can just point and laugh.
Re: Remove inline colors
Reply #6 –
OK, how's this for a solution: default colors for default member groups are set by the theme, but they can be overridden by the forum admins in the admin panel.
I don't want to get in the way of admins choosing the desired colors, but it's a bit painful when the default color for the member group set by ElkArte is something with very poor visibility against the theme background. So I would say, let them choose whatever colors they want, but the default should be something that theme authors can set to be aesthetically fitting.
Re: Remove inline colors
Reply #7 –
If you're going to let them choose whatever they want, there's little point worrying about whether the defaults match your theme. If they have any sense they'll choose something that matches, and if they haven't they'll make it gruesome.
And then this all falls down if they are running multiple themes and/or a multi-variant theme, because chances are you won't be able to get one default that matches them all anyway. In that situation you'd want the sort of solution I suggested: the ability to use custom CSS to change colour by theme/variant if you have more than one operational.
Look at it this way: your complaint is that stuff is hard-coded into the templates, but your idea for a "fix" is to hard-code more stuff into the templates.