use transition and transform mixins

This commit is contained in:
scossar 2015-08-30 10:02:12 -07:00
parent 322df1862d
commit 5baa6ea66c
2 changed files with 12 additions and 4 deletions

View File

@ -278,15 +278,15 @@ td.flaggers td {
.admin-detail.mobile-open { .admin-detail.mobile-open {
@media (max-width: $mobile-breakpoint) { @media (max-width: $mobile-breakpoint) {
transition: transform 0.3s ease; @include transition(transform 0.3s ease);
transform: (translateX(50%)); @include transform(translateX(50%));
} }
} }
.admin-detail.mobile-closed { .admin-detail.mobile-closed {
@media (max-width: $mobile-breakpoint) { @media (max-width: $mobile-breakpoint) {
transition: transform 0.3s ease; @include transition(transform 0.3s ease);
transform: (translateX(0)); @include transform(translateX(0));
} }
} }

View File

@ -113,3 +113,11 @@
-webkit-transform: $transforms; -webkit-transform: $transforms;
transform: $transforms; transform: $transforms;
} }
@mixin transition($transitions) {
-o-transition: $transitions;
-moz-transition: $transitions;
-webkit-transition: $transitions;
transition: $transitions;
}