/* Use the same flex width for all running header entries, so that the middle one is actually centered */
.wst-rh > div {
flex: 8em;
}
th {
font-weight: normal;
text-align: center;
vertical-align: middle;
}
td {
vertical-align: middle;
}
.primary-colgroup th {
font-size: 92%;
font-style: italic;
font-weight: bold;
}
.secondary-colgroup th {
font-size: 83%;
font-variant: small-caps;
}
#measures_table .primary-rowgroup th {
font-style: italic;
font-weight: bold;
}
#weights_table .primary-rowgroup th {
text-transform: uppercase;
}
.primary-rowgroup td {
font-size: 120%;
padding-top: .5em;
padding-bottom: .5em;
}
.secondary-rowgroup th {
font-variant: small-caps;
}
caption {
padding-bottom: 1em;
border-bottom: 2px solid black;
}
.primary-colgroup th, .secondary-colgroup th {
border-bottom: 1px solid black;
}
.primary-colgroup th:nth-child(n+2), .secondary-colgroup th:nth-child(n+2) {
border-left: 1px solid black;
}
/* The borders need special treatment, since mediawiki doesn't support <col> */
#measures_table, #weights_table {
border-collapse: collapse;
}
/* Japanese character */
#measures_table > tbody > tr > td:nth-child(2) {
text-align: center;
border-left: 1px solid black;
}
/* Divided into */
#measures_table > tbody > tr > td:nth-child(3) {
text-align: left;
font-size: 83%;
font-variant-numeric: oldstyle-nums;
border-left: 1px solid black;
}
/* Exact */
#measures_table > tbody > tr > td:nth-child(even):nth-child(n+4):nth-child(-n+9) {
text-align: center;
border-left: 2px solid black;
}
/* Apprximate */
#measures_table > tbody > tr > td:nth-child(odd):nth-child(n+4):nth-child(-n+9) {
text-align: right;
border-left: 1px solid black;
}
/* Remarks */
#measures_table > tbody > tr > td:nth-child(10) {
text-align: left;
border-left: 2px solid black;
}
/* Thick headers: first row */
#measures_table > tbody > tr.primary-colgroup > th:nth-child(n+4) {
border-left: 2px solid black;
}
/* Thick headers: exact on second row */
#measures_table > tbody > tr.secondary-colgroup > th:nth-child(odd) {
border-left: 2px solid black;
}
#weights_table > tbody > tr:not(.primary-rowgroup):not(.secondary-rowgroup) > th[scope=row] {
text-align: left;
padding-left: 2em;
}
/* No variance in the thickness on the weights table fortunately */
#weights_table > tbody > tr > td:nth-child(n+2) {
border-left: 1px solid black;
}
/* Japanese character */
#weights_table > tbody > tr > td:nth-child(2) {
text-align: center;
}
/* Divided into */
#weights_table > tbody > tr > td:nth-child(3) {
font-size: 83%;
text-align: left;
}
/* Approximate weights. French grammes behaves a bit weird but either left or right would work. */
#weights_table > tbody > tr > td:nth-child(n+4):nth-child(-n+7) {
text-align: right;
}
/* Remarks */
#weights_table > tbody > tr > td:nth-child(8) {
text-align: left;
}