Template:Zebra table/styles.css

/* zebra */
.zebra:not(.sortable) tr:nth-child(odd),
.zebra:not(.sortable) tr:nth-child(odd) th[scope="row"],
body.skin-minerva .zebra tr:nth-child(odd),
body.skin-minerva .zebra tr:nth-child(odd) th[scope="row"],
body:not(.skin-minerva) .zebra.sortable tr:nth-child(even),
body:not(.skin-minerva) .zebra.sortable tr:nth-child(even) th[scope="row"] {
	background-color: #f8f9fa;
}
.zebra:not(.sortable) tr:nth-child(even),
.zebra:not(.sortable) tr:nth-child(even) th[scope="row"],
body.skin-minerva .zebra tr:nth-child(even),
body.skin-minerva .zebra tr:nth-child(even) th[scope="row"],
body:not(.skin-minerva) .zebra.sortable tr:nth-child(odd),
body:not(.skin-minerva) .zebra.sortable tr:nth-child(odd) th[scope="row"] {
	background-color: white;
}

/* 奇数行を強調 */
.zebra-odd:not(.sortable) tr:nth-child(odd),
.zebra-odd:not(.sortable) tr:nth-child(odd) th[scope="row"],
body.skin-minerva .zebra-odd tr:nth-child(odd),
body.skin-minerva .zebra-odd tr:nth-child(odd) th[scope="row"],
body:not(.skin-minerva) .zebra-odd.sortable tr:nth-child(even),
body:not(.skin-minerva) .zebra-odd.sortable tr:nth-child(even) th[scope="row"] {
	background-color: #f8f9fa;
}
.zebra-odd:not(.sortable) tr:nth-child(even),
.zebra-odd:not(.sortable) tr:nth-child(even) th[scope="row"],
body.skin-minerva .zebra-odd tr:nth-child(even),
body.skin-minerva .zebra-odd tr:nth-child(even) th[scope="row"],
body:not(.skin-minerva) .zebra-odd.sortable tr:nth-child(odd),
body:not(.skin-minerva) .zebra-odd.sortable tr:nth-child(odd) th[scope="row"] {
	background-color: white;
}

/* 偶数行を強調 */
.zebra-even:not(.sortable) tr:nth-child(even),
.zebra-even:not(.sortable) tr:nth-child(even) th[scope="row"],
body.skin-minerva .zebra-even tr:nth-child(even),
body.skin-minerva .zebra-even tr:nth-child(even) th[scope="row"],
body:not(.skin-minerva) .zebra-even.sortable tr:nth-child(odd),
body:not(.skin-minerva) .zebra-even.sortable tr:nth-child(odd) th[scope="row"] {
	background-color: #f8f9fa;
}
.zebra-even:not(.sortable) tr:nth-child(odd),
.zebra-even:not(.sortable) tr:nth-child(odd) th[scope="row"],
body.skin-minerva .zebra-even tr:nth-child(odd),
body.skin-minerva .zebra-even tr:nth-child(odd) th[scope="row"],
body:not(.skin-minerva) .zebra-even.sortable tr:nth-child(even),
body:not(.skin-minerva) .zebra-even.sortable tr:nth-child(even) th[scope="row"] {
	background-color: white;
}

/* [[カテゴリ:テンプレートスタイル]] */