blob: b1215d735f186c578624f9aa1a5d18a17709200f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
@mixin opacity ($value, $important: false) {
$importantValue: null;
@if $important {
$importantValue: unquote("!important");
}
opacity: $value $importantValue;
@if $value < 1 {
$valueperc: $value*100;
filter: alpha(opacity=#{$valueperc}) #{$importantValue};
} @else {
filter: none #{$importantValue};
}
}
// -webkit-box-shadow still needed for Android 2.3 and 3.0, as well as iOS 5
@mixin box-shadow ($shadows...) {
@include prefixer(box-shadow, $shadows, webkit spec);
}
|