[distance-to-portal] add vendor-prefixes to transformations and implement updating the distance without re-rendering all portal details

Firefox supports 'transform' without prefix, but Android still requires '-webkit-'. To be sure, include properties with '-moz-', '-webkit-' and without prefix.
This commit is contained in:
fkloft
2015-02-21 14:19:33 +01:00
parent 9c534c8898
commit d55d363112
2 changed files with 33 additions and 18 deletions

View File

@ -19,10 +19,14 @@
top: 0.15em;
left: 0.15em;
transform: skewY(-30deg);
-moz-transform: skewY(-30deg);
-webkit-transform: skewY(-30deg);
}
#portal-distance-bearing:after {
left: auto;
right: 0.15em;
transform: scaleX(-1) skewY(-30deg);
-moz-transform: scaleX(-1) skewY(-30deg);
-webkit-transform: scaleX(-1) skewY(-30deg);
}