doublesecretagency / craft-cpcss

Control Panel CSS plugin for Craft CMS
MIT License
117 stars 8 forks source link

Per member group #4

Closed jacobgraf closed 9 years ago

jacobgraf commented 10 years ago

First off, thanks for writing the Control Panel CSS plugin. One thing I thought of was that it would be cool if you could define custom CSS on a per member group basis. Not sure what's involved technically with this but would be awesome for a number of things.

lindseydiloreto commented 10 years ago

Thanks, glad you like it! That's a pretty interesting suggestion... lemme give it some thought, but that could be an cool new feature.

The only catch is, a user can belong to more than one user group. How would a situation like that be handled? I'd imagine that the CSS for each group would all get loaded.

jacobgraf commented 10 years ago

I agree. Just load all relevant CSS. Would be cool for your jquery plugin too! :-)

Sent from my iPhone

On Nov 5, 2014, at 5:15 PM, Lindsey DiLoreto notifications@github.com wrote:

Thanks, glad you like it! That's a pretty interesting suggestion... lemme give it some thought, but that could be an cool new feature.

The only catch is, a user can belong to more than one user group. How would a situation like that be handled? I'd imagine that the CSS for each group would all get loaded.

— Reply to this email directly or view it on GitHub https://github.com/lindseydiloreto/craft-cpcss/issues/4#issuecomment-61899810 .

lindseydiloreto commented 10 years ago

Hmm... yes. I think I like it!

I'm not sure when I'll have a chance to make those adjustments, but consider them "on the list". :)

lindseydiloreto commented 9 years ago

@jacobgraf Digging up this old thread... I've decided to make a formal feature request to solve multiple problems at once...

http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/7900728-circumstantial-cp-body-classes

jordanlev commented 9 years ago

:+1:

lindseydiloreto commented 9 years ago

Looks like the feature request got vetoed... so I made a custom plugin for it instead...

https://github.com/lindseydiloreto/craft-cpusergroup

That plugin will add user group classes to the <body> tag automatically. You can then use CP CSS to target each group individual, and customize your CP differently for each group!

jacobgraf commented 9 years ago

Awesome! Thanks Lindsey!