forked from JedWatson/react-select
-
Notifications
You must be signed in to change notification settings - Fork 10
/
mixins.scss
66 lines (60 loc) · 1.18 KB
/
mixins.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// Mixins
// ------------------------------
// Utilities
@mixin size($width, $height)
{
width: $width;
height: $height;
}
@mixin square($size)
{
@include size($size, $size);
}
@mixin border-top-radius($radius)
{
border-top-right-radius: $radius;
border-top-left-radius: $radius;
}
@mixin border-right-radius($radius)
{
border-bottom-right-radius: $radius;
border-top-right-radius: $radius;
}
@mixin border-bottom-radius($radius)
{
border-bottom-right-radius: $radius;
border-bottom-left-radius: $radius;
}
@mixin border-left-radius($radius)
{
border-bottom-left-radius: $radius;
border-top-left-radius: $radius;
}
// Vendor Prefixes
@mixin animation($animation)
{
-webkit-animation: $animation;
-o-animation: $animation;
animation: $animation;
}
@mixin box-sizing($boxmodel)
{
-webkit-box-sizing: $boxmodel;
-moz-box-sizing: $boxmodel;
box-sizing: $boxmodel;
}
@mixin rotate($degrees)
{
-webkit-transform: rotate($degrees);
-ms-transform: rotate($degrees); // IE9 only
-o-transform: rotate($degrees);
transform: rotate($degrees);
}
@mixin transform($transform)
{
-webkit-transform: $transform;
-moz-transform: $transform;
-ms-transform: $transform;
transform: $transform;
}