summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/util/_css3.scss
blob: c04930512c0422ecd3e6e4d090ea4203c50cd761 (plain)
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
@mixin opacity ($o, $important: false) {
  $imp: "";
  
  @if $important {
    $imp: "!important";
  }
  
  opacity: $o #{unquote($imp)};
  
  @if $o < 1 {
    filter: alpha(opacity=$o*100) #{unquote($imp)};
  } @else {
    filter: none #{unquote($imp)};
  }
}


@mixin border-radius ($br) {
  -webkit-border-radius: $br;
  border-radius: $br;
}


@mixin width-breakpoint ($point) {
  @media (max-width: $point) {
    @content;
  }
}