forked from opentargets-archive/webapp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
_utils.scss
56 lines (46 loc) · 1.29 KB
/
_utils.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
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
-moz-border-radius: $radius;
-ms-border-radius: $radius;
border-radius: $radius;
}
@mixin box-shadow($shadow) {
-webkit-box-shadow: $shadow;
-moz-box-shadow: $shadow;
-ms-box-shadow: $shadow;
-o-box-shadow: $shadow;
box-shadow: $shadow;
}
@mixin transform($transform) {
-webkit-transform: $transform;
-moz-transform: $transform;
-ms-transform: $transform;
-o-transform: $transform;
transform: $transform;
}
@mixin transform-origin($transform) {
-webkit-transform-origin: $transform;
-moz-transform-origin: $transform;
-ms-transform-origin: $transform;
-o-transform-origin: $transform;
transform-origin: $transform;
}
@mixin transition($trans){
-webkit-transition: $trans;
-moz-transition: $trans;
-ms-transition: $trans;
-o-transition: $trans;
}
@mixin gradient($grad){
background: -webkit-linear-gradient($grad);
background: -moz-linear-gradient($grad);
background: -o-linear-gradient($grad);
background: linear-gradient($grad);
}
@function inv-color($color) {
@if (lightness($color) > 50) {
@return #000000; // Lighter backgorund, return dark color
} @else {
@return #FFFFFF; // Darker background, return light color
}
}