Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Keep this wiki going by contributing to our Patreon!

Icon background color

Icon background color

I changed the background color for the icon to be gray like Template:StyleFood. This way the icons for items that naturally have black (e.g. Cichol Puppet) will be visible. Is everyone okay with this, or do you have a different color to suggest?

Angevon (Talk)09:30, 16 May 2012

Wouldn't it be better to apply the change on the image class in MediaWiki:Common.css?

TheFarix09:34, 16 May 2012
 

I'm not familiar with the css so I didn't want to touch it. Tell me where to change it and I'll do it.

Angevon (Talk)10:22, 16 May 2012
 
Edited by 2 users.
Last edit: 18:45, 3 September 2012

It's pretty much the same as regular coding. All you have to do is replace

table.mabitable tr.image td, table.mabitable td.image,
table.imagetable td, table.imagetable th {
    background-color: #000;
}

with

table.mabitable tr.image td, table.mabitable td.image,
table.imagetable td, table.imagetable th {
    background-color: #333;
}

(I think.) But that will effect every imagetable on the wiki. No item will have a black background.

Pyro - (Talk)11:33, 16 May 2012

The irony. A text replacement in a post requesting replacement.

Pyro - (Talk)21:26, 3 September 2012
 
 

Meant to edit this, not double post...

Pyro - (Talk)11:33, 16 May 2012
 

The only unpleasant side effect I can think of doing this is that all of those nice previews people has taken in front of the Dunbarton Library doorway will look odd now. :\

TheFarix11:40, 16 May 2012
 

And things like that is why I recommended this.

Pyro - (Talk)11:43, 16 May 2012
 

After thinking about this, and seeing the current results I think I prefer a completely black background because it makes most icons pop out more. But perhaps apply a switch when you are dealing with an icon that contain black.

TheFarix03:14, 19 May 2012
 

I don't like the gray much, either. It looks out of place since the table's borders are also gray. I'm fine with the switch idea.

Angevon (Talk)08:11, 19 May 2012
 

So, should it be a style override such as ImageStyle=background: #333; or more like BlackIcon=y While the latter is shorter, the former is more customizable for the situation.

TheFarix09:15, 19 May 2012
 

Can you do that with CSS?

Pyro - (Talk)11:26, 19 May 2012
 

Very easily.

TheFarix11:52, 19 May 2012
 

Maybe if we edit the template but how would that work with CSS? (I don't know too much about CSS.)

Pyro - (Talk)12:09, 19 May 2012