User:Fomafix/common.css

From mediawiki.org

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Test for [[Special:Code/MediaWiki/107669#c29584]] */

table.wikitable2 {
	margin: 1em 1em 1em 0;
	background-color: #f9f9f9;
	border: 1px #aaa solid;
	border-collapse: collapse;
	color: black;
}

table.wikitable2 > tr > th,
table.wikitable2 > tr > td,
table.wikitable2 > * > tr > th,
table.wikitable2 > * > tr > td {
	border: 1px #aaa solid;
	padding: 0.2em;
}
/* IE6 only */
* html table.wikitable2 * tr th,
* html table.wikitable2 * tr td {
	border: expression(/(^| )wikitable2($| )/.test(this.parentNode.parentNode.parentNode.className) ? "1px #aaa solid" : "ignorethisinvalidvalue");
	padding: expression(/(^| )wikitable2($| )/.test(this.parentNode.parentNode.parentNode.className) ? "0.2em" : "ignorethisinvalidvalue");
}

table.wikitable2 > tr > th,
table.wikitable2 > * > tr > th {
	background-color: #f2f2f2;
	text-align: center;
}
/* IE6 only */
* html table.wikitable2 * tr th {
	background-color: expression(/(^| )wikitable2($| )/.test(this.parentNode.parentNode.parentNode.className) ? "#f2f2f2" : "ignorethisinvalidvalue");
	text-align: expression(/(^| )wikitable2($| )/.test(this.parentNode.parentNode.parentNode.className) ? "center" : "ignorethisinvalidvalue");
}

table.wikitable2 > caption {
	font-weight: bold;
}
/* IE6 only */
* html table.wikitable2 caption {
	font-weight: expression(/(^| )wikitable2($| )/.test(this.parentNode.className) ? "bold" : "ignorethisinvalidvalue");
}