@mixin setTopLine($c: #C7C7C7) {
  content: " ";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 1px;
  border-top: 1px solid $c;
  color: $c;
  transform-origin: 0 0;
  transform: scaleY(0.5);
}

@mixin setBottomLine($c: #C7C7C7) {
  content: " ";
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 1px;
  border-bottom: 1px solid $c;
  color: $c;
  transform-origin: 0 100%;
  transform: scaleY(0.5);
}

@mixin setLeftLine($c: #C7C7C7) {
  content: " ";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  bottom: 0;
  border-left: 1px solid $c;
  color: $c;
  transform-origin: 0 0;
  transform: scaleX(0.5);
}

@mixin setRightLine($c: #C7C7C7) {
  content: " ";
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  bottom: 0;
  border-right: 1px solid $c;
  color: $c;
  transform-origin: 100% 0;
  transform: scaleX(0.5);
}

@mixin setLine($c: #c0c0c0) {
  content: " ";
  width: auto !important;
  height: auto !important;
  position: absolute;
  left: 0 !important;
  top: 0 !important;
  bottom: -100% !important;
  right: -100% !important;
  border: 1px solid $c !important;
  border-radius: inherit;
  transform-origin: left top;
  transform: scale(0.5);
}

.v-p_1px{
  &:before {
    @include setLine;
    border-radius: inherit;
  }
  &-t{
    position: relative;
    &:before {
      @include setTopLine;
      border-radius: inherit;
    }
  }
  &-b{
    position: relative;
    &:after {
      @include setBottomLine;
      border-radius: inherit;
      z-index: 1;
    }
  }
  &-tb{
    position: relative;
    &:before {
      @include setTopLine;
      border-radius: inherit;
    }
    &:after {
      @include setBottomLine;
      border-radius: inherit;
      z-index: 1;
    }
  }
  &-l{
    position: relative;
    &:before {
      @include setLeftLine;
      border-radius: inherit;
    }
  }
  &-r{
    position: relative;
    &:after {
      @include setRightLine;
      border-radius: inherit;
      z-index: 1;
    }
  }
}
