@mixin icon-add($size, $lineThickness, $color) {
  background-color: transparent;
  border: none;
  padding: 0;
  width: $size;
  height: $size;
  position: relative;
  &:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: $lineThickness;
    margin-left: -$lineThickness / 2;
    background-color: $color;
  }
  &:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: $lineThickness;
    margin-top: -$lineThickness / 2;
    background-color: $color;
  }
}

@mixin icon-check($sizeLeft, $sizeRight, $lineThickness, $color) {
  display: inline-block;
  width: $sizeLeft;
  height: $sizeRight;
  transform: rotate(45deg);
  border-width: $lineThickness;
  border-color: $color;
  border-style: none solid solid none;
  transform-origin: $sizeLeft * 0.63 0.075 * $sizeRight;
  margin-left: 0.75 * $sizeRight;
}

@mixin icon-close($size, $lineThickness, $color) {
  display: inline-block;
  width: $size;
  height: $size;
  transform: rotate(45deg);
  position: relative;
  &:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: auto;
    height: 100%;
    width: $lineThickness;
    transform: translateX(-50%);
    background-color: $color;
  }
  &:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    height: $lineThickness;
    transform: translateY(-50%);
    background-color: $color;
  }
}

@mixin icon-delete($size, $borderSize, $circleBorderColor, $circleBgColor, $minusWidth, $minusHeight, $minusColor) {
  width: $size;
  height: $size;
  border-radius: $size / 2;
  border: solid $borderSize $circleBorderColor;
  background-color: $circleBgColor;
  display: flex;
  padding: 0;
  align-items: center;
  justify-content: center;
  &:before {
    content: "";
    background-color: $minusColor;
    width: $minusWidth;
    height: $minusHeight;
    display: inline-block;
  }
}

@mixin icon-expand-more($size, $lineThickness, $color) {
  display: inline-block;
  width: $size;
  height: $size;
  border-color: $color;
  border-width: $lineThickness;
  border-style: none solid solid none;
  transform: rotate(45deg);
  padding: 0;
  background-color: transparent;
}

@mixin icon-login($width, $lineThickness, $color) {
  display: inline-block;
  $height: $width * 0.9;
  $borderRadius: 2px;
  $arrowSize: 0.3 * $width;

  width: $width/2;
  height: $height;
  border-radius: 0 $borderRadius $borderRadius 0;
  border-width: $lineThickness;
  border-color: $colorRed;
  border-style: solid solid solid none;
  position: relative;
  &:before {
    content: "";
    display: block;
    height: $lineThickness;
    background-color: $color;
    width: $width * 0.7;
    left: -$width / 2;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  &:after {
    content: "";
    width: $arrowSize;
    height: $arrowSize;
    display: block;
    position: absolute;
    left: 0;
    border-color: $color;
    border-style: solid solid none none;
    border-width: $lineThickness;
    transform: translateY(-50%) rotate(45deg);
    top: 50%;
    margin-left: -0.25 * $width;
  }
}

@mixin icon-menu($width, $height, $lineThickness, $color) {
  display: inline-block;
  width: $width;
  height: $height;
  border-width: $lineThickness;
  border-color: $color;
  border-style: solid none solid none;
  position: relative;
  box-sizing: border-box;
  &:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    height: $lineThickness;
    background-color: $color;
    margin-top: -$lineThickness/2;
  }
}

@mixin icon-sort-drag($width, $height, $lineThickness, $color) {
  display: inline-block;
  width: $width;
  height: $height;
  border-width: $lineThickness;
  border-color: $color;
  border-style: solid none solid none;
  position: relative;
  box-sizing: border-box;
}
