Jump to content

Template:Numbered block/styles.css

Permanently protected template
From Wikipedia, the free encyclopedia
/* {{pp-template}} */
table.numblk {
	border-collapse: collapse;
	border: none;
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 0;
}

table.numblk > tbody > tr > td {
	vertical-align: middle;
	padding: 0;
}

table.numblk > tbody > tr > td:nth-child(2) {
	width: 99%;
}

table.numblk > tbody > tr > td:nth-child(2) > table {
	border-collapse: collapse;
	margin: 0;
	border: none;
	width: 100%;
}

table.numblk > tbody > tr > td:nth-child(2) >
table > tbody > tr:first-child > td:first-child,
table.numblk > tbody > tr > td:nth-child(2) >
table > tbody > tr:first-child > td:last-child {
	padding: 0 0.4ex;
}

table.numblk > tbody > tr > td:nth-child(2) >
table > tbody > tr:first-child > td:nth-child(2) {
	width: 100%;
	padding: 0;
}

table.numblk > tbody > tr > td:nth-child(2) >
table > tbody > tr:last-child > td {
	padding: 0;
}

table.numblk > tbody > tr > td:last-child {
	font-weight: bold;
}

table.numblk.numblk-raw-n > tbody > tr > td:last-child {
	font-weight: /*revert*/unset;
}

table.numblk > tbody > tr > td:last-child::before {
	content: "(";
}

table.numblk > tbody > tr > td:last-child::after {
	content: ")";
}

table.numblk.numblk-raw-n > tbody > tr > td:last-child::before,
table.numblk.numblk-raw-n > tbody > tr > td:last-child::after {
	content: none;
}

table.numblk > tbody > tr > td {
	border: none;
}

table.numblk.numblk-border > tbody > tr > td {
	border: thin solid;
}

table.numblk > tbody > tr > td:nth-child(2) >
table > tbody > tr:first-child > td {
	border: none;
}

table.numblk.numblk-border > tbody > tr > td:nth-child(2) >
table > tbody > tr:first-child > td {
	border: thin solid;
}

table.numblk > tbody > tr > td:nth-child(2) >
table > tbody > tr:last-child > td {
	border-left: none;
	border-right: none;
	border-bottom: none;
}

table.numblk.numblk-border > tbody > tr > td:nth-child(2) >
table > tbody > tr:last-child > td {
	border-left: thin solid;
	border-right: thin solid;
	border-bottom: thin solid;
}

table.numblk:target {
	color: var(--color-base, #202122);
	background-color: #cfe8fd;
}

@media screen {
	html.skin-theme-clientpref-night table.numblk:target {
		color: var(--color-base, #eaecf0);
		background-color: #301702;
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os table.numblk:target {
		color: var(--color-base, #eaecf0);
		background-color: #301702;
	}
}