mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
use transition and transform mixins
This commit is contained in:
parent
322df1862d
commit
5baa6ea66c
2 changed files with 12 additions and 4 deletions
|
@ -278,15 +278,15 @@ td.flaggers td {
|
|||
|
||||
.admin-detail.mobile-open {
|
||||
@media (max-width: $mobile-breakpoint) {
|
||||
transition: transform 0.3s ease;
|
||||
transform: (translateX(50%));
|
||||
@include transition(transform 0.3s ease);
|
||||
@include transform(translateX(50%));
|
||||
}
|
||||
}
|
||||
|
||||
.admin-detail.mobile-closed {
|
||||
@media (max-width: $mobile-breakpoint) {
|
||||
transition: transform 0.3s ease;
|
||||
transform: (translateX(0));
|
||||
@include transition(transform 0.3s ease);
|
||||
@include transform(translateX(0));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -113,3 +113,11 @@
|
|||
-webkit-transform: $transforms;
|
||||
transform: $transforms;
|
||||
}
|
||||
|
||||
@mixin transition($transitions) {
|
||||
-o-transition: $transitions;
|
||||
-moz-transition: $transitions;
|
||||
-webkit-transition: $transitions;
|
||||
transition: $transitions;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue