/* 混入接收两个参数 */
@mixin ul-li( $width:50%,$textAlign:center,$float:left) {
  float: $float;
  list-style: none;
  width: $width;
  height: 100%;
  text-align: $textAlign;
}

/* 渐变 */
@mixin gradual($color, $color1){
  background: $color; /* Old browsers */
  background: -moz-linear-gradient(top,  $color 0%, $color1 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(top,  $color 0%,$color1 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom,  $color 0%,$color1 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=$color, endColorstr=$color1,GradientType=0 ); /* IE6-9 */
}

//滚动条样式
@mixin scroll-bar {
 &::-webkit-scrollbar {
    z-index: 11;
    width: 6px;

    &:horizontal {
      height: 6px;
    }

    &-thumb {
      border-radius: 5px;
      width: 6px;
      background: $--scrollbar-thumb-background-common;
    }

    &-corner {
      background: $--scrollbar-track-background-common;
    }

    &-track {
      background: $--scrollbar-track-background-common;

      &-piece {
        background: $--scrollbar-track-background-common;
        width: 6px;
      }
    }
  }
}