Altering wikitable css class to allow for colored TH cells?
I want to be able to set a "class={{{disver}}}a/b" on header rows (rows that start with ! instead of |), a class (I guess technically 'a series of classes') that I constructed to set the background color, text color, and link color. But if I use class=wikitable on the table as a whole, and specify "class={{{disver}}}a/b" on header row cells with !/!!, the header cells will not listen to class={{{disver}}}a/b. This is driving me nuts beyond belief.
I attempted to avoid the problem by making a unique class for the tables I wanted (table.modifiedinfo), but I can't get the internal borders to look right. There's nothing else wrong with 'wikitable' except for this 'perma-grey TH cell' problem. I'd like to continue using class=wikitable... if I can solve this grey-header problem. If nothing else, class=wikitable looks better in mobile (class=modifiedinfo looks like crap in preview>mobile).
I tried putting !important in - see the section labeled D-Block here http://disgaea.wikia.com/wiki/User:SannaSK/wikia.css (yes it's my personal CSS but once I get a given section working, an admin has been kind enough to paste said section into the main two CSS files) - but a test on some tables in my Sandbox http://disgaea.wikia.com/wiki/User:SannaSK/Sandbox (yes I've purged) shows that the class=wikitable is not affected. Look about halfway down to the set of 4 boxes with the green and orange color scheme; the class=wikitable box does not have green cells in the TH row.
I've now reached the terrifying step of attempting to alter whatever css affects .wikitable to fix this.
Using Firebug extension in Firefox, I found these two sections of code.
table.wikitable { background: none repeat scroll 0 0 #fafafa; border: 1px solid #cccccc; border-collapse: collapse; color: #3a3a3a; margin: 1em 1em 1em 0; } [...] table.wikitable > tr > th, table.wikitable > * > tr > th { background: none repeat scroll 0 0 #f2f2f2; text-align: center; }
As far as I understand, if I take out the 'none' from both 'background's (or at least the "> tr > th" one), this will solve my problem. Question 1 - is this correct?
Theoretically, the colors stated here shouldn't interfere or be interfered with, since the class=disver will be lower/higher/more-important/whatever in the Cascade, yes? So the 'fa' and 'f2' colors here will continue to apply to other wikitables on the site, that don't have a class=disvera/b in them. Yes?
If taking out the 'none' doesn't fix my problem, what does?
Question two: The one active admin on the site has told me he doesn't understand CSS; which means I need to be able to 'perform CSS surgery over the phone,' as it were (where 'phone' here means 'on his Talk page'). What friggin file is the above code found in, and how do I tell him to get there? Because it's not "http://disgaea.wikia.com/wiki/MediaWiki:Wikia.css" and it's not "http://disgaea.wikia.com/wiki/MediaWiki:Common.css", and that's all I know how (to tell him) to find.
Additional Links:
Disver is a variable that is set in the templates, so that one template can be used across multiple pages and input the background color of that game in that cell. IE: on http://disgaea.wikia.com/wiki/Magnificent_Gate the purple/blue is set using class=D1a/b; on http://disgaea.wikia.com/wiki/Beginner%27s_Map the same template is used, but disver=D2a/b.
I read this forum exchange - http://community.wikia.com/wiki/Forum:Wikitable_class_changed_why%3F - and I don't feel it touches on this issue at all.
Googling gave me http://www.w3schools.com/css/css_background.asp - which doesn't seem to help... 'none' appears to refer to background images? maybe?