// scrollbar
@mixin custom-scrollbar() {
  &::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    padding: 1px;
    background-color: transparent;
  }
  &::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 4px;
  }
  &::-webkit-scrollbar-track {
    background-color: $white;
    border-radius: 4px;
    box-shadow: inset 0px 0px 2px $white;
  }
}
@mixin no-scrollbar() {
  &::-webkit-scrollbar {
    height: 0;
    width: 0;
  }

  &::-webkit-scrollbar-thumb {
    height: 0;
    width: 0;
  }

  &::-webkit-scrollbar-track {
    height: 0;
    width: 0;
  }
}

@mixin ellipsis($row) {
  overflow: hidden;
  text-overflow: ellipsis;
  @if $row == 1 {
    display: block;
    white-space: nowrap;
    word-wrap: normal;
  } @else if $row >= 2 {
    display: -webkit-box;
    -webkit-line-clamp: $row;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
  }
}

@mixin ellipsis-column($column) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $column;
  -webkit-box-orient: vertical;
}
