Category specific css


( hey_julien) #1

Allow to use a css, per category, defined by the admin or super moderators.


How to use category color as background color?
( hey_julien) #2

One more argument: from ex-reddit employee (full article here : Reddit: Lessons Learned from Mistakes Made Scaling to 1 Billion Pageviews a Month - High Scalability - )

Give users a little bit of power, see what they do with it, and turn the good stuff into features. For example, when the ability to add CSS to subreddits was added they saw what people were doing and added many of the common things as feature for everyone. This also makes users excited about doing stuff on reddit because they like that sense of control. Lots of other examples.


(Jeff Atwood) #3

Yes, that is why you can run your own Discourse instance and change the code however you like.


(Michael Downey) #4

Reviving this topic to see if the thinking has changed at all. We now allow custom backgrounds, header images, as well as having a much more robust (in my perception) customization system.

It seems to work well for Reddit and our local community groups would enjoy being able to have a distinct look and feel for their conversations.

Any chance of giving categories separate CSS customization? Is it a bad idea?


(RĂ©gis Hanol) #5

You can already do this if you’re an administrator. Just prefix your rules with the appropriate category class.


Any live examples of category-specific CSS styling?
(Michael Downey) #6

Ah, nice. Hadn’t seen that category-foo-bar class on <body>. Thanks!

Although … there may be some case for delegating administration at some point for categories. I know there have been some discussions about it regarding moderation, so maybe someone will find this idea some day if that happens and add it to the wish list for such a delegated model. :smile:


Any live examples of category-specific CSS styling?