UNPKG

890 BSCSSView Raw
1/**
2* Transform utilities
3*
4* naming convention: gl-{transform}-{position}-{value}, or
5* gl-{transform}-{value}
6*/
7
8@mixin gl-translate-x-0 {
9 transform: translateX(0);
10}
11
12@mixin gl-translate-x-100 {
13 transform: translateX(100%);
14}
15
16@mixin gl-translate-x-n50 {
17 transform: translateX(-50%);
18}
19
20@mixin gl-translate-y-0 {
21 transform: translateY(0);
22}
23
24@mixin gl-translate-y-100 {
25 transform: translateY(100%);
26}
27
28@mixin gl-translate-y-n50 {
29 transform: translateY(-50%);
30}
31
32@mixin gl-translate-y-n100 {
33 transform: translateY(-100%);
34}
35
36@mixin gl-rotate-90 {
37 transform: rotate(90deg);
38}
39
40@mixin gl-rotate-180 {
41 transform: rotate(180deg);
42}
43
44@mixin gl-rotate-270 {
45 transform: rotate(270deg);
46}
47
48@mixin gl-flip-horizontal {
49 transform: scale(-1, 1);
50}
51
52@mixin gl-flip-vertical {
53 transform: scale(1, -1);
54}
55
56@mixin gl-flip-both {
57 transform: scale(-1, -1);
58}