Disputatio MediaWiki:Common.css

Latest comment: abhinc 8 annos by YaganZ in topic Inflection tables

Could we have the list of fonts currently in Formula:IPA moved to here, so that it works like on Wikipedia? --Vlad 16:16, 23 Aprilis 2006 (UTC)Reply

Done. I had been planning to do this before but never got around to it. —Myces Tiberinus 22:10, 23 Aprilis 2006 (UTC)Reply

Inflection tables +/-

I would be nice to have the feature "class=inflection-table" in this MediaWiki:Common.css to avoid redlinks in inflection tables.

Example code from English MediaWiki:Common.css:

/* Inflection tables
----------------------------- */

/* To colour links in inflection tables (currently done with
	{{notred}}) black without using #ifexist and allowing for user
	override */
.inflection-table a.new { color: inherit; }

/* fill a parent NavContent collapsing box */
.NavContent table.inflection {
	width: 100%;
}

/* basic inflection table styles */
table.inflection {
	border-collapse: collapse;
	border: 1px solid;
	background: #ffffff;
}

	table.inflection caption {
		caption-side: bottom;
		padding: 0.33em 1em;
		text-align: left;
		font-size: smaller;
	}

	/* subtle grey for alternate row backgrounds */
	table.inflection tr:nth-child(odd) {
		background: #fcfcfc;
	}

	/* and for row headers */
	table.inflection tr:nth-child(odd):not(.rowgroup) th {
		background: #f6f6f6;
	}

		table.inflection td,
		table.inflection th {
			padding: 0.33em 1em;
			vertical-align: baseline;
		}

		/* but vertically center multi-row cells */
		table.inflection td[rowspan] {
			vertical-align: middle;
		}

		table.inflection td {
			text-align: center;
		}

		/* regular row headers, in the left column */
		table.inflection th {
			background: #f9f9f9;
			text-align: left;
		}

		/* rowgroup header rows */
		table.inflection tr.rowgroup th {
			background: #eeeeee;
			text-align: center;
		}

			/* first-of-several rowgroup header cells is aligned left */
			table.inflection tr.rowgroup th:first-child { text-align: left; }
				table.inflection tr.rowgroup th:first-child:only-child { text-align: center; }

	/* rows with dividers above */
	table.inflection tr.divider th {
		border-top: 3px solid #999999;
	}


	/* transliterations */
	table.inflection .translit {
		color: #888;
	}

	/* header links aren’t coloured until hover/active */
	table.inflection th a:link,
	table.inflection th a:visited {
		color: inherit;
		text-decoration: inherit;
	}

		table.inflection th a:hover {
			color: #0645ad;
			text-decoration: underline;
		}

		table.inflection th a:active {
			color: #faa700;
			text-decoration: underline;
		}

/* Russian verb tables */

table.inflection-ru.inflection-verb {
	background: #ffffff;
}

	/* and for row headers */
	table.inflection-ru.inflection-verb tr:nth-child(odd):not(.rowgroup) th {
		background: #fcfcda;
	}

		table.inflection-ru.inflection-verb th {
			background: #ffffe0;
		}

		table.inflection-ru.inflection-verb tr.rowgroup th {
			background: #e0e0ff;
		}

		table.inflection-ru.inflection-verb tr.divider th {
			border-top-color: #9090d0;
		}

/* ----
end of Inflection tables */

Thanks, --YaganZ (disputatio) 19:47, 2 Februarii 2016 (UTC)Reply

Revertere ad "Common.css".