Use an absolute positioning for narrow chart

translateY(-50%) doesn't work on svg elements in firefox, apparently?
This commit is contained in:
Michael Lange 2017-09-26 17:18:52 -07:00
parent 4d9c430a87
commit 2d1b489cf2
1 changed files with 3 additions and 11 deletions

View File

@ -21,12 +21,7 @@
opacity: 0;
}
$color-sequence: $orange,
$yellow,
$green,
$turquoise,
$blue,
$purple,
$color-sequence: $orange, $yellow, $green, $turquoise, $blue, $purple,
$red;
@for $i from 1 through length($color-sequence) {
@ -69,7 +64,8 @@
// Ensure two columns, but don't use the full width
width: 35%;
.label, .value {
.label,
.value {
display: inline;
font-weight: $weight-normal;
}
@ -89,8 +85,4 @@
}
}
}
&.is-narrow .bar {
transform: translateY(-50%);
}
}