summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/mixins.css.scss
blob: e098fecc9427d4a97a620fc70502f83948784c0f (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@mixin border-box{
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

@mixin border-radius($pixels) {
  -webkit-border-radius: $pixels;
     -moz-border-radius: $pixels;
      -ms-border-radius: $pixels;
       -o-border-radius: $pixels;
          border-radius: $pixels;
}

@mixin box-shadow($shadows...) {
  -webkit-box-shadow: $shadows;
     -moz-box-shadow: $shadows;
          box-shadow: $shadows;
}

@mixin appearance($appearance) {
  -webkit-appearance: $appearance;
     -moz-appearance: $appearance;
          appearance: $appearance;
}

@mixin gradient($top, $bottom) {
  background-color: $bottom;
  *background-color: $bottom;
  background-image: -moz-linear-gradient(top, $top, $bottom);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from($top), to($bottom));
  background-image: -webkit-linear-gradient(top, $top, $bottom);
  background-image: -o-linear-gradient(top, $top, $bottom);
  background-image: linear-gradient(to bottom, $top, $bottom);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$top', endColorstr='$bottom', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

@mixin clearfix {
  &:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
  }
  * html & {
    height: 1px;
  }
}