//处理通用css文件


@mixin clearfix {
  &:after {
    content: '';
    display: table;
    clear: both;
  }
}

@mixin scrollBar {
  &::-webkit-scrollbar-track-piece {
    background: #d3dce6;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #99a9bf;
    border-radius: 20px;
  }
}

@mixin relative {
  position: relative;
  width: 100%;
  height: 100%;
}

@mixin flex($justify: center, $align: center, $direction: false) {
  display: flex;
  justify-content: $justify;
  align-items: $align;

  @if ($direction !=false) {
    flex-direction: $direction;
  }
}


@mixin set-img($size,$isPercent:false) {
  @if $isPercent==true{
    width: #{$size};
  }@else{
    width: #{$size}px;
  }
  img {
    width: 100%;
  }
}

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

@mixin multi-line($line) {
  overflow: hidden;
  /*将对象作为弹性伸缩盒子模型显示*/
  display: -webkit-box;
  /*设置子元素排列方式*/
  -webkit-box-orient: vertical;
  /*设置显示的行数，多出的部分会显示为...*/
  -webkit-line-clamp: $line;
}

