Template:HCPP toc/styles.css

From Wikisource
Jump to navigation Jump to search
/*
 * Stylesheet for TOCs for [[House of Commons Parliamentary Papers]].
 * 
 * There are a few different styles extant:
 * 
 *
 * Invoke via {{HCPP toc}}
 */

/* centre in page */
._hcpp_toc {
	margin: auto;
	max-width: 60em;
	font-size: 90%;
	line-height: 130%;
}

/**********************************************
 * _NTDSP_col_rules: Number, Title, date (d|m|y), subject, page num
 * With column rules
 */
._NTDSP_col_rules {
	border-top: 1px solid black;
	border-collapse: collapse;
}

/* default cell rules */
._NTDSP_col_rules td {
	vertical-align: top;
	white-space: nowrap;
}

._NTDSP_col_rules  td:nth-child(2),
._NTDSP_col_rules  td:nth-child(5),
._NTDSP_col_rules  td:nth-child(6) {
	border-right: 1px solid black;
}

/* Right align for number, day, page */
._NTDSP_col_rules td:nth-child(1),
._NTDSP_col_rules td:nth-child(4),
._NTDSP_col_rules td:nth-child(7){
	text-align: right;
}

/* HI for subject col */
._NTDSP_col_rules td:nth-child(6) {
	padding-left: 1.5em;
	text-indent: -1em;
	white-space: normal;
}

._NTDSP_col_rules td:nth-child(7) {
	vertical-align:bottom;
}

._NTDSP_col_rules  td:nth-child(2),
._NTDSP_col_rules  td:nth-child(3),
._NTDSP_col_rules  td:nth-child(7) {
	padding-left: 0.5em;
}

._NTDSP_col_rules  td:nth-child(2),
._NTDSP_col_rules  td:nth-child(5),
._NTDSP_col_rules  td:nth-child(6) {
	padding-right: 0.5em;
}

/*******************************************************
 * Classes to allow wrapping a given col
 */
._allow_wrap_col2 td:nth-child(2) {
	white-space: normal;
}