_mixins.scss
1.94 KB
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
67
68
69
70
71
@mixin clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}
@mixin opacity($opacity) {
opacity: $opacity;
$opacity-ie: $opacity * 100;
filter: alpha(opacity=$opacity-ie);
}
@mixin background-gradient-left2right($start-color, $end-color) {
background-color: $start-color;
background-image: -webkit-gradient(linear, left top, right top, from($start-color), to($end-color));
background-image: -webkit-linear-gradient(to right, $start-color, $end-color);
background-image: -moz-linear-gradient(to right, $start-color, $end-color);
background-image: -ms-linear-gradient(to right, $start-color, $end-color);
background-image: -o-linear-gradient(to right, $start-color, $end-color);
background-image: linear-gradient(to right, $start-color, $end-color);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$start-color}', endColorstr='#{$end-color}', gradientType='1');
}
@mixin border-radius-left($val) {
border-top-left-radius: $val;
border-bottom-left-radius: $val;
}
@mixin border-radius-top($val) {
border-top-left-radius: $val;
border-top-right-radius: $val;
}
@mixin border-radius-bottom($val) {
border-bottom-left-radius: $val;
border-bottom-right-radius: $val;
}
@mixin input-placeholder($color) {
&::-webkit-input-placeholder {color: $color}
&:-moz-placeholder {color: $color}
&::-moz-placeholder {color: $color}
&:-ms-input-placeholder {color: $color}
}
@mixin flex() {
display: -ms-flexbox;
display: flex;
}
@mixin flex-justify-between() {
-ms-flex-pack: justify;
justify-content: space-between;
}
@mixin flex-align-center() {
-ms-flex-align: center;
align-items: center;
}
@mixin flex-wrap($value) {
-ms-flex-wrap: $value;
flex-wrap: $value;
}
@mixin flex-justify-center() {
-ms-flex-pack: center;
justify-content: center;
}