mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 21:35:48 +08:00
use transition and transform mixins
This commit is contained in:
parent
322df1862d
commit
5baa6ea66c
|
@ -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 New Issue
Block a user