跳转到内容

Template:NumBlk/styles.css

维基百科,自由的百科全书

这是Template:NumBlk/styles.css当前版本,由Justin545留言 | 贡献编辑于2024年6月29日 (六) 08:38 (增加樣式使得當片段標識符指到.numblk時會以淺藍色背景突顯)。这个网址是本页该版本的固定链接。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
table.numblk {
	border-collapse: collapse;
	background: none;
	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;
	background: none;
	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 {
    background-color: #eaf3ff;
}