@mixin clearfix{
  &:after{
    content: '.';
    display: table-cell;
    height: 0;
    visibility: hidden;
  }
}

@mixin font-smooth{
  -webkit-font-smoothing: antialiased;
}

@mixin hyphens($mode: auto) {
  word-wrap: break-word;
  -webkit-hyphens: $mode;
  hyphens: $mode;
}

@mixin in-bl{
  display:inline-block;
  *display:inline;
  *zoom:1;
  _overflow: hidden;
}

@mixin sprite($x,$y,$img){
  background-image:url($img);
  background-position:$x $y;
  background-repeat:no-repeat;
}

@mixin size($w,$h,$align:''){
  width:#{$w}px;
  height:#{$h}px;
  @if $align!=''{
    text-align:$align;
  }
}

@mixin text-overflow{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@mixin unselectable{
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  user-select:none;
}

@mixin webfont($name:lianbo,$rename:$name){
  @font-face {
    font-family: '#{$rename}';
    src:  font-url("#{$name}.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
  }
}

@import "helper";
