mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 23:20:33 +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 {
|
.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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user