Module:Datastaven/styles.css: verschil tussen versies
Uiterlijk
Verwijderde inhoud Toegevoegde inhoud
kGeen bewerkingssamenvatting |
Tooltips naar de rechterkant verplaatst (zaten boven) zowat padding boven de grafiek weg kan. Die viel over de inhoud erboven heen, waardoor de bewerken-links (in Chrome) niet meer aanklikbaar waren. |
||
Regel 2: | Regel 2: | ||
.es-chart { |
.es-chart { |
||
overflow-x: auto; |
overflow-x: auto; |
||
padding-top: |
padding-top: 1.2em; |
||
margin |
margin-bottom: 1em; |
||
} |
} |
||
Regel 63: | Regel 63: | ||
box-sizing: border-box; |
box-sizing: border-box; |
||
padding: 0 4px; |
padding: 0 4px; |
||
top: -1.5em; |
|||
bottom: calc(100% + 2em); |
|||
left: 1.8em; |
|||
white-space: pre; |
white-space: pre; |
||
font-size: 1.0625em; |
font-size: 1.0625em; |
||
Regel 71: | Regel 72: | ||
content: " "; |
content: " "; |
||
position: absolute; |
position: absolute; |
||
top: 0.3em; |
|||
left: |
left: -1em; |
||
width: 0; |
width: 0; |
||
height: 0; |
height: 0; |
||
border-width: |
border-width: 0.5em; |
||
border-style: solid; |
border-style: solid; |
||
border-color: #999 |
border-color: transparent #999 transparent transparent; |
||
} |
} |
||
Versie van 23 aug 2021 12:26
/* Chart */
.es-chart {
overflow-x: auto;
padding-top: 1.2em;
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;
}