anki/ts/src/stats/graphs.css
2020-06-29 15:48:01 +10:00

136 lines
1.9 KiB
CSS

* {
box-sizing: border-box;
}
.graph-tooltip {
position: absolute;
background-color: white;
padding: 15px;
border-radius: 5px;
font-size: 15px;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
background: #fff;
}
.graph {
margin-left: auto;
margin-right: auto;
}
.graph h1 {
text-align: center;
}
/* .cards-graph-grid {
display: flex;
flex-wrap: wrap;
padding-left: 0;
padding-right: 1em;
align-items: center;
}
.cards-graph-grid svg {
flex: 3 0 0;
flex-direction: column;
min-width: 500px;
}
.cards-graph-grid div.graph-description {
flex: 0 0 10em;
font-family: "Arial";
} */
.no-domain-line .domain {
display: none;
}
.range-box {
position: fixed;
z-index: 1;
top: 0;
width: 100%;
height: 4em;
background: white;
padding: 0.5em;
}
.range-box-pad {
height: 4em;
}
.range-box-inner {
display: flex;
justify-content: center;
}
.graph .area {
opacity: 0.05;
pointer-events: none;
fill: black;
}
.axis-label {
text-anchor: middle;
font-size: 10px;
}
.y-axis-label {
writing-mode: vertical-rl;
rotate: 180;
}
.hoverzone rect {
fill: none;
pointer-events: all;
}
.hoverzone rect:hover {
fill: grey;
opacity: 0.05;
}
@keyframes spin {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
.spin {
position: absolute;
animation: spin;
animation-duration: 1s;
animation-iteration-count: infinite;
display: inline-block;
font-size: 2em;
opacity: 0;
}
.spin.active {
opacity: 0.5;
transition: opacity 1s;
}
.tooltip-area {
height: 4em;
}
.tooltip-area > * {
flex: 1 100%;
justify-content: center;
display: flex;
}
.legend-outer {
display: flex;
justify-content: center;
}
.legend-outer div {
padding-left: 1em;
}