aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/util/_css3.scss
blob: ca354e89afa2e8d373150a314e9d2b129f23fca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@mixin opacity ($o) {
  opacity: $o;

  $value: first-number($o);
  @if $value < 1 {
    filter: alpha(opacity=$value*100) remove-nth($o, 1);
  } @else {
    filter: none remove-nth($o, 1);
  }
}

// -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);
}