
@mixin Transition($time){
  transition: $time + s;
  -webkit-transition: $time + s;
  -moz-transition: $time + s;
  -ms-transition: $time + s;
  -o-transition: $time + s;
}
@mixin Scale($size){
  transform: scale($size);
  -webkit-transform: scale($size);
  -moz-transform: scale($size);
  -ms-transition: scale($size);
  -o-transform: scale($size);
}
@mixin Rotate($deg){
  transform: rotate($deg + deg);
  -webkit-transform: rotate($deg + deg);
  -moz-transform: rotate($deg + deg);
  -ms-transform: rotate($deg + deg);
  -o-transform: rotate($deg + deg);
}
@mixin Opacity($opacity) {
  $IEValue: $opacity*100;
  opacity: $opacity;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity="+$IEValue+")";
  filter: alpha(opacity=$IEValue);
}
@mixin Bradius($radius) {
  -webkit-border-radius: $radius;
  -moz-border-radius: $radius;
  -ms-border-radius: $radius;
  border-radius: $radius;
}

@mixin Auto($wi) {
  margin: {
    left: auto;
    right: auto;
  }
  float:none;
  display: block;
  width:$wi + px;
}

@mixin Gradient-horisontal($from-color, $to-color){
  background: $from-color;
  background: -moz-linear-gradient(left, $from-color 0%, $to-color 100%);
  background: -webkit-linear-gradient(left, $from-color 0%, $to-color 100%);
  background: linear-gradient(to right, $from-color 0%, $to-color 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='$from-color', endColorstr='$to-color',GradientType=1 );
}

@mixin Gradient-vertical($from-color, $to-color){
  background: $from-color;
  background: -moz-linear-gradient(top, $from-color 0%, $to-color 100%);
  background: -webkit-linear-gradient(top, $from-color 0%, $to-color 100%);
  background: linear-gradient(to bottom, $from-color 0%, $to-color 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='$from-color', endColorstr='$to-color',GradientType=1 );
}

@mixin Gradient-diagonal-bottom($from-color, $to-color){
  background: $from-color;
  background: -moz-linear-gradient(-45deg, $from-color 0%, $to-color 100%);
  background: -webkit-linear-gradient(-45deg, $from-color 0%, $to-color 100%);
  background: linear-gradient(135deg, $from-color 0%, $to-color 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='$from-color', endColorstr='$to-color',GradientType=1 );
}

@mixin Gradient-diagonal-up($from-color, $to-color){
  background: $from-color;
  background: -moz-linear-gradient(45deg, $from-color 0%, $to-color 100%);
  background: -webkit-linear-gradient(45deg, $from-color 0%, $to-color 100%);
  background: linear-gradient(45deg, $from-color 0%, $to-color 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='$from-color', endColorstr='$to-color',GradientType=1 );
}

@mixin Gradient-radial($from-color, $to-color){
  background: $from-color;
  background: -moz-radial-gradient(center, ellipse cover, $from-color 0%, $to-color 100%);
  background: -webkit-radial-gradient(center, ellipse cover, $from-color 0%,$to-color 100%);
  background: radial-gradient(ellipse at center, $from-color 0%,$to-color 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='$from-color', endColorstr='$to-color',GradientType=1 );
}

@mixin BgNoRepeat0 {
  background-repeat: no-repeat;
  background-position: 0 0;
}
@mixin BgNoRepeat50 {
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

@mixin filter-gray($pre) {
  filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
  filter: gray;
  -webkit-filter: grayscale($pre);
  -ms-filter: grayscale($pre);
  -o-filter: grayscale($pre);
  -moz-filter: grayscale($pre);
}
@mixin contrast($pre) {
  -webkit-filter: contrast($pre);
  filter: contrast($pre);
  -ms-filter: contrast($pre);
  -o-filter: contrast($pre);
  -moz-filter: contrast($pre);
}
@mixin filter-blur($pre) {

  filter: blur($pre + px);
  -webkit-filter: blur($pre + px);
  -ms-filter: blur($pre + px);
  -o-filter: blur($pre + px);
  -moz-filter: blur($pre + px);
  filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=$pre);
}
@mixin filter-none {
  filter: none;
  -webkit-filter: none;
  -o-filter: none;
  -moz-filter: none;
  -ms-filter: none;
}
@mixin wfl {
  width: 100%;
  float: left;
}

@mixin ArrowMenu($wid,$hei) {
  width: $wid + px;
  height: $hei + px;
  background: url("../img/arrow-down.png") 50% 50% no-repeat;
  content: '';
  position: absolute;
  top: 50%;
  margin-top: -($hei/2) +px;
  @include Transition(0.3)
}

