Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Bar chart/styles.css

Permanently protected template
From Wikipedia, the free encyclopedia
/* {{pp-template}} */
.bar-chart {
	margin: 0.5em;
	background-color: var(--background-color-neutral-subtle, #f8f9fa);
	border: 1px solid #c0c0c0;
	border-spacing:0px;
}
.bar-chart tbody {
	display:table;
	width:100%;
}
.bar-chart caption {
	display:block;
	font-weight: bold;
}

.bar-chart th,
.bar-chart td {
	padding: 3px;
	text-align: left;
}
/* highlight bars on mouseover */
.bar-chart tr:not(:first-child):hover{
	background-color: var(--background-color-base, #ffffff);
}

.bar-chart th[scope="col"]:not(.bar-chart-label-type) {
	width: 15em;
}

.bar-chart th[scope="row"]:not(.bar-chart-total) {
	font-weight: normal;
}

.bar-chart-bar {
	height: 1.25em;
	width: 40em;
}

.bar-chart-bar-line {
	background-color: #cedff2;
	height: 1.25em; 
	margin: 0 0 0 0; 
	z-index: 0;
}

.bar-chart-bar-comment {
	font-size: 90%; 
	padding-left: 1em;
}

.bar-chart-bar-numbers {
	position: relative; 
	top: -1.4em; 
	height: 1.25em; 
	padding: 0 0 0 2em; 
	z-index: 10;
	width: 40em;
}

.bar-chart-caption {
	border-top: 1px solid #aaa;
}

@media (min-width: 720px) {
	.bar-chart-left {
		float: left;
		clear: left;
		margin: 0.5em 1em 0.5em 0;
	}
	
	.bar-chart-right {
		float: right;
		clear: right;
		margin: 0.5em 0 0.5em 1em;
	}
	
	.bar-chart-center {
		margin: 0.5em auto;
	}
}

/* The CSS below is for situations where the standard background color is not
*  visible either because of contrast or because all background colors are 
*  removed when printing:
*/

/* for dark mode */
@media screen {
    html.skin-theme-clientpref-night .bar-chart-bar-line { 
    	background-color: #74497e;
    }
}

/* for automatic dark mode */
@media screen and (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .bar-chart-bar-line { 
    	background-color: #74497e;
    }
}

/* for printed copies */
@media print {
	.bar-chart-bar-line {
		border: dashed 1pt grey;
	}
}