Naar inhoud springen

Module:Datastaven/styles.css

Uit Wikipedia, de vrije encyclopedie
Dit is een oude versie van deze pagina, bewerkt door Strepulah (overleg | bijdragen) op 13 jan 2021 om 18:21.
Deze versie kan sterk verschillen van de huidige versie van deze pagina.
/* Chart */
.es-chart {
	overflow-x: auto;
	padding-top: 6em;
	margin: -5em 0 1em;
}


/* Grid */
ul.es-grid {
	display: flex;
	margin: 0 0 1.6em;
	list-style: none;
	font-size: 0.85em;
}
/* 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 {
	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;
	bottom: calc(100% + 2em);
	white-space: pre;
	z-index: 1;
}
.es-tip::after {
	content: " ";
	position: absolute;
	bottom: -12px;
	left: 2px;
	width: 0;
	height: 0;
	border-width: 6px;
	border-style: solid;
	border-color: #999 transparent transparent transparent;
}


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