forked from pantsel/konga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_mixins.scss
49 lines (43 loc) · 1.93 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
$color-box-shadow: #ababab;
@mixin border-radius($radius) {
// If you want to support also old browsers just un-comment lines below
//-webkit-border-radius: $radius;
//-moz-border-radius: $radius;
//-ms-border-radius: $radius;
border-radius: $radius;
}
@mixin no-select() {
// If you want to support also old browsers just un-comment lines below
//-webkit-touch-callout: none;
//-webkit-user-select: none;
//-khtml-user-select: none;
//-moz-user-select: none;
//-ms-user-select: none;
user-select: none;
}
@mixin box-shadow($top, $left, $blur, $color: $color-box-shadow, $inset: '') {
// If you want to support also old browsers just un-comment lines below
//-webkit-box-shadow: $top $left $blur $color #{$inset};
//-moz-box-shadow: $top $left $blur $color #{$inset};
box-shadow: $top $left $blur $color #{$inset};
}
@mixin text-shadow($top, $left, $blur, $color) {
text-shadow: $top $left $blur $color;
}
@mixin linear-gradient($color-from, $color-to) {
// Fallback Color
// If you want to support also old browsers just un-comment lines below
//background-image: -webkit-gradient(linear, left top, left bottom, from($color-from), to($color-to)); // Saf4+, Chrome
//background-image: -webkit-linear-gradient(top, $color-from, $color-to); // Chrome 10+, Saf5.1+, iOS 5+
//background-image: -moz-linear-gradient(top, $color-from, $color-to); // FF3.6
//background-image: -ms-linear-gradient(top, $color-from, $color-to); // IE10
//background-image: -o-linear-gradient(top, $color-from, $color-to); // Opera 11.10+
background: $color-to linear-gradient(top, $color-from, $color-to);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#{$color-from}', EndColorStr='#{$color-to}');
}
@mixin border-box() {
// If you want to support also old browsers just un-comment lines below
//-webkit-box-sizing: border-box;
//-moz-box-sizing: border-box;
box-sizing: border-box;
}