fix error with multiple decimal em in safari

This commit is contained in:
Hakim El Hattab 2017-05-18 15:34:51 +02:00
parent 6dde00fb2e
commit 453a888797
2 changed files with 3 additions and 3 deletions

View File

@ -272,8 +272,8 @@ body {
border-radius: 0.25em;
background-color: currentColor;
transition: all 0.15s ease, background-color 0.8s ease;
-webkit-transform-origin: 0.25em 50%;
transform-origin: 0.25em 50%;
-webkit-transform-origin: 0.2em 50%;
transform-origin: 0.2em 50%;
will-change: transform; }
.reveal .controls .controls-arrow {
position: relative;

View File

@ -314,7 +314,7 @@ $controlsArrowAngleActive: 36deg;
background-color: currentColor;
transition: all 0.15s ease, background-color 0.8s ease;
transform-origin: $controlArrowThickness/2 50%;
transform-origin: floor(($controlArrowThickness/2)*10)/10 50%;
will-change: transform;
}