view web/scoring/scores.css @ 45:0f4163dbbafc

SVG charts: separate database-querying and chart-printing code. Create Game methods in rlgall.py to get histogram data for score, xl, maxdepth. In stats2.py, make the chart-printing functions use this data and avoid running hard-coded queries.
author John "Elwin" Edwards
date Thu, 16 Jan 2014 16:25:09 -0800
parents d2c3c29ca4f9
children
line wrap: on
line source

@import url("/main.css");

div.stable {
	display: table;
	border-width: 1px;
	border-color: #101040;
	border-style: solid;
	border-collapse: collapse;
}

div.sentry {
	display: table-row;
	border-width: 1px 0;
	border-color: #101040;
	border-style: solid;
}

div.sentry:first-child {
	background-color: #E0E0E0;
}

div.sentry:nth-child(3n) {
	background-color: #E0E0FF;
}

div.sentry:nth-child(3n+4) {
	background-color: #E0FFE0;
}

div.sentry:nth-child(3n+2) {
	background-color: #FFE0E0;
}

div.graph {
	margin: 1em auto;
}

span.shdata {
	display: table-cell;
	font-weight: bold;
	text-align: center;
	padding: 0 1em;
}

span.sdata {
	display: table-cell;
	padding: 0 1em;
}

span.sdatar {
	display: table-cell;
	padding: 0 1em;
	text-align: right;
}