Index:On the economy of machinery and manufactures - Babbage - 1846.djvu/styles.css

From Wikisource
Jump to navigation Jump to search
.wst-heading {
	text-align: center;
	margin-bottom: 1em;
}
.wst-heading.subtitle {
	font-variant: all-small-caps;
}

table {
	margin: 1em auto;
	border-collapse: collapse;
}

th {
	font-weight: normal;
	text-align: center;
}

/* e.g. page /41 */
._open_figure_table th {
	font-size: 80%;
	padding: 0 0.5em;
}

/* figure columns */
._open_figure_table td:nth-child(n+2) {
	padding: 0 2em;
	text-align: right;
}

/* e.g. page /41 */
._ruled_cols {
	border: 1px solid black;
}

._ruled_cols th {
	padding: 0 0.5em;
	border-bottom: 1px solid black;
}

._ruled_cols td,
._ruled_cols th {
	border-left: 1px solid black;
}

/* row for units */
._units_row th {
	font-size: 90%;
    border-bottom: none;
}

/* figure columns 
 * _merged_row is when there's a rowspan on the first cell of a previous row
 */
._ruled_cols td:nth-child(n+2),
._ruled_cols ._merged_row td {
	padding: 0 2em;
	text-align: right;
}

._final_total_col td:last-child,
._final_total_col th:last-child {
	border-left: 2px solid black;
}

/* specific  table */

._p184_table tr._units_row {
	font-style: italic;
}

/* would be a lot easer with proper <col>/<colgroup> support */
._p184_table tr:not(._merged_row) td:nth-child(2),
._p184_table tr._merged_row td:nth-child(1) {
	text-align: left;
}

._p184_table tr:not(._merged_row) td:nth-child(5),
._p184_table tr._merged_row td:nth-child(4) {
	padding-right: 1em;
}

._p184_table tr._units_row th:nth-child(6),
._p184_table tr:not(._merged_row) td:nth-child(6),
._p184_table tr._merged_row td:nth-child(5) {
	border-left: none;
	padding-left: 0;
}