domsPlace/public/styles/tools/_transform.scss
2018-05-05 21:13:43 +10:00

35 lines
647 B
SCSS

/*
* Transform Mixins
* Provides mixins for transforms
*
* Dependencies:
* styles/tools/prefix.scss - Used to prefix browser support
*
* Version:
* 1.0.1 - 2018/01/24
*/
@mixin t-transform($transforms) {
@include t-prefix-property(transform, $transforms, moz o ms webkit spec);
}
@mixin t-translate($x, $y) {
@include t-transform(translate($x, $y));
}
@mixin t-translate-x($x) {
@include t-transform(translateX($x));
}
@mixin t-translate-y($y) {
@include t-transform(translateY($y));
}
@mixin t-scale($amt) {
@include t-transform(scale($amt));
}
@mixin t-rotate($amt) {
@include t-transform(rotate($amt));
}