Template:US Census population/styles.css

From Montepedia
Revision as of 15:57, 14 July 2023 by MontessoriX (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
/* {{pp-template|small=yes}} */
.us-census-pop {
	border-spacing: 1px;
	border: 1px solid #a2a9b1;
	background-color: #f8f9fa;
	padding: 0.3em;
	font-size: 95%;
}

.us-census-pop caption {
	background-color: lavender;
	padding-right: 0.2em;
	padding-left: 0.2em;
	font-size: 110%;
	font-weight: bold;
	border: 1px solid #a2a9b1;
	border-bottom: none;
}

.us-census-pop th[scope=col] {
	border-bottom: 1px solid black;
}

.us-census-pop td:nth-child(2) {
	text-align: right;
	padding-left: 0.5em;
	padding-right: 0; 
}

/* pop-estimate appears as an :nth-child(2) so match specificity */
.us-census-pop td.us-census-pop-estimate {
	padding-left: 0;
}

.us-census-pop td:nth-child(3) {
	padding-left: 0;
}

.us-census-pop td:nth-child(4) {
	 padding-left: 0.5em;
	 text-align: right;
}

.us-census-pop-footnote {
	border-top: 1px solid black;
	font-size: 85%;
	text-align: center;
}

@media (min-width: 720px) {
	.us-census-pop-right {
		float: right;
		clear: right;
		margin: 0 0 1em 1em;
	}
	
	.us-census-pop-left {
		float: left;
		clear: left;
		margin: 0 1em 1em 0;
	}
	
	.us-census-pop-center {
		float: none;
		margin-left: auto;
		margin-right: auto;
	}
	
	.us-census-pop-none {
		float: none;
		margin: 0 1em 1em 0;
	}
}