Module:Datastaven/styles.css

/* Chart */
.es-chart {
	overflow-x: auto;
	padding-top: 1.25em;
	margin-bottom: 1em;
}


/* Grid */
ul.es-grid {
	display: flex;
	margin: 0 0 1.7em;
	list-style: none;
	font-size: 0.8em;
}
/* Fix voor mobiele versie */
.es-grid li:last-child {
	margin-bottom: 0;
}


/* Bar */
.es-bar {
	width: inherit;
	align-self: flex-end;
	margin: 0;
	border: 1px solid #ccc;
	border-radius: 3px 3px 0 0;
	box-sizing: border-box;
	position: relative;
	text-align: center;
}
.es-bar::before,
.es-bar::after {
	position: absolute;
	left: 0;
	width: 100%;
	text-align: center;
}
.es-bar::before {
	content: attr(data-y);
	top: -1.5em;
	height: 1.6em;
}
.es-bar::after {
	content: attr(data-x);
	bottom: -1.7em;
}


/* Tooltip */
.es-bar:hover .es-tip,
.es-bar:focus .es-tip {
	visibility: visible;
}
.es-tip {
	visibility: hidden;
	position: absolute;
	background-color: white;
	border: 1px solid darkgray;
	border-radius: 3px;
	min-width: 100%;
	box-sizing: border-box;
	padding: 0 4px;
	top: -1.5em;
	left: 1.8em;
	white-space: pre;
	font-size: 1.0625em;
	z-index: 1;
}
.es-tip::after {
	content: " ";
	position: absolute;
	top: 0.3em;
	left: -1em;
	width: 0;
	height: 0;
	border-width: 0.5em;
	border-style: solid;
	border-color: transparent #999 transparent transparent;
}


/* Note */
.es-note {
	margin-top: -1em;
	font-size: 0.9em;
}


/* Legend */
.es-legend {
	font-size: 0.9em;
	margin: 0.5em 0;
}
.es-legend > ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}
.es-legend li {
	min-width: 10.8em;
	margin: 0 0.5em 0.5em 0;
}
.es-legend span {
	display: inline-block;
	width: 1.3em;
	height: 1.3em;
	border: 1px solid #ccc;
	border-radius: 3px;
	margin-right: 0.4em;
	vertical-align: middle;
}