2017-11-15 21:01:28 +01:00
|
|
|
body {
|
|
|
|
padding-top: 5rem;
|
|
|
|
}
|
|
|
|
|
2017-11-16 23:57:21 +01:00
|
|
|
.content-box {
|
2017-11-15 21:01:28 +01:00
|
|
|
padding: 3rem 1.5rem;
|
|
|
|
text-align: center;
|
2017-11-16 23:57:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.chart-box {
|
|
|
|
border: 1px solid grey;
|
|
|
|
}
|
2017-11-18 12:49:33 +01:00
|
|
|
|
|
|
|
/* This container will allow scaling svg, so we don't need to care about it in d3.js */
|
|
|
|
.svg-container {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
padding-bottom: 100%; /* aspect ratio */
|
|
|
|
vertical-align: top;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.svg-content-responsive {
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0; /* not 10px, but 0 instead */
|
|
|
|
left: 0;
|
|
|
|
}
|