Module:Datastaven/styles.css
Uiterlijk
/* Chart */
.es-chart {
overflow-x: auto;
padding-top: 6em;
margin-top: -5em;
}
/* Grid */
ul.es-grid {
display: flex;
border: 1px solid #ccc;
margin: 0 0 1.6em;
list-style: none;
font-size: 0.9em;
}
/* Bar */
.es-bar {
width: inherit;
align-self: flex-end;
margin: 0;
border: 1px solid #aaa;
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;
}
.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;
font-size: 0.9em;
padding: 0 4px;
bottom: calc(100% + 2.4em);
white-space: pre;
z-index: 1;
}
.es-tip::after {
content: " ";
position: absolute;
bottom: -12px;
left: calc(50% - 6px);
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 {
font-size: 2.4em;
line-height: 0.8em;
vertical-align: middle;
padding-bottom: 3px;
}