Template:Ackermann/style.css
Jump to navigation
Jump to search
/*
* CSS styling for complex formatting (especially tables) in Ackermann's Repository of Arts
*
* This stylersheet applies to Volume 1, but later volumes can use it too if they
* turn out to have compatible formatting
*/
/*
* Generic
*/
/* Rules between columns */
._acker_cols td:not(:first-child) {
border-left: 1px solid black;
}
/* =============================================================================
* Meteorological Journal tables
*/
._acker_meteo {
margin: auto;
border-collapse: collapse;
border: 2px solid black;
font-size: 83%; /* smaller */
line-height: 1.2; /* reduced a bit */
}
/* Centre headings and with border */
._acker_meteo th {
font-weight: normal;
text-align: center;
border: 1px solid black;
padding: 0.6em 0.2em; /* vertical padding and a hair of horizontal*/
}
/* Normal table row cells get a bit of padding on the edges */
._acker_meteo tr td{
text-align: right;
padding-left: 1em;
padding-right: 1em;
}
/* At least for volume 1, there are two left-aligned columns at the end */
._acker_meteo tr td:nth-last-child(-n+2) {
text-align: left;
}
/* Column borders on all cells */
._acker_meteo td {
border-left: 1px solid black;
}
/* Month headings and the "bar" rows */
._acker_meteo_month td {
padding-left: 0;
padding-right: 0;
text-align: center;
}
/* =============================================================================
* Share price table
*/
._acker_share_prices {
/* margin: auto;*/
font-size: 83%; /* smaller */
line-height: 1.2; /* reduced a bit */
text-align: left;
}
._acker_share_prices td {
vertical-align: top;
}
._acker_share_prices td:nth-child(2),
._acker_share_prices td:nth-child(3) {
text-align: right;
}
/* =============================================================================
* Commodity price table: _acker_prices
* _acker_2_col Commodity || s. || d.
* _acker_3_col Commodity || £. || s. || d.
* _acker_1to1_col (e.g. d.): Commodity || d. || a || d.
* _acker_2to2_col (e.g. £. s.): Commodity || £. || s. || a || £. || s.
*/
._acker_prices,
._acker_prices_centred {
font-size: 83%; /* smaller */
line-height: 1.2; /* reduced a bit */
border-collapse: collapse;
}
._acker_prices th {
font-weight: normal;
text-align: center;
}
/* figure cols */
._acker_2_col td:nth-last-child(-n+2), /* last 2 */
._acker_3_col td:nth-last-child(-n+3), /* last 3 */
._acker_1to1_col td:nth-last-child(2n+1), /* 1 and 3 from end */
._acker_2to2_col td:nth-last-child(-n+2), /* last 2 */
._acker_2to2_col td:nth-last-child(4),
._acker_2to2_col td:nth-last-child(5),
._acker_3to3_col td:nth-last-child(-n+3), /* last 3 */
._acker_3to3_col td:nth-last-child(5),
._acker_3to3_col td:nth-last-child(6),
._acker_3to3_col td:nth-last-child(7)
{
text-align: right;
vertical-align: bottom;
padding-left: 0.4em;
padding-right: 0.4em;
}
/* "a" columns */
._acker_1to1_col td:nth-last-child(2),
._acker_2to2_col td:nth-last-child(3),
._acker_3to3_col td:nth-last-child(4) {
text-align: center;
vertical-align: bottom;
}
/* Centred text under some tables */
._acker_prices_centred {
text-align: center;
}