Nao

  • Dadman with a boy
  • Posts: 16,078
New suffixes for skin files...
« 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?

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: New suffixes for skin files...
« Reply #1, on April 19th, 2012, 01:02 PM »
So, what would go into index.admin.css that wouldn't be in admin.css?

index.local.css I can see making sense though.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,078
Re: New suffixes for skin files...
« Reply #2, on April 19th, 2012, 06:13 PM »
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:

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278