Public area => The Pub => Features => Topic started by: Nao on April 18th, 2012, 11:41 PM
So, as I suggested elsewhere, I (locally) added support for a few new suffixes.
I'm asking for feedback about the concept. Is it worth including in Wedge?
- index.admin.css: only gets added to the CSS file if viewer is an admin.
- index.mod.css: only gets added if viewer is a local moderator.
- index.custom.css: this one already existed, so it doesn't change anything... but I also added:
- index.local.css: (maybe 'index.custom-local.css'?) only gets added if the file is located precisely in the folder of the current skin, i.e. ignore it if showing an inherited skin.
The last one I felt was needed because one my want to customize a few graphics in a specific skin, and yet still be able to inherit it without having to reset the changes caused by the index.custom.css in yet another index.custom.css file...
What do you think?
So, what would go into index.admin.css that wouldn't be in admin.css?
index.local.css I can see making sense though.
admin.css is loaded (for everyone), only when visiting the Admin area.
index.admin.css is loaded (for admins) everywhere.
It's a suffix -- meaning it can be "media.admin.css" for instance, or even "admin.admin.css" if you're giving admin area access to non-admins and want to keep something to you... :P
I'm keeping my index.local.css, I agree it's a good idea :lol:
Yes, as I mentioned elsewhere I could see the benefit of doing that :)