$--color-view:#252525;

.j-mask {
  z-index: 200;
}

.resize-btn {
  position: absolute;
  width: 15px;
  height: 15px;
  z-index: 15;

  &.right-top {
    right: -5px;
    top: -5px;
    cursor: ne-resize;
  }

  &.right-bottom {
    right: -5px;
    bottom: -5px;
    cursor: se-resize;
  }

  &.left-top {
    left: -5px;
    top: -5px;
    cursor: se-resize;
  }

  &.left-bottom {
    left: -5px;
    bottom: -5px;
    cursor: ne-resize;
  }
}

.resize-bar-horizontal {
  position: absolute;
  z-index: 15;
  width: 100%;
  height: 8px;
  cursor: n-resize;

  &.top {
    top: -4px;
  }

  &.bottom {
    bottom: -4px;
  }
}

.resize-bar-vertical {
  position: absolute;
  z-index: 15;
  width: 8px;
  height: 100%;
  cursor: w-resize;

  &.left {
    left: -4px;
  }

  &.right {
    right: -4px;
  }
}

.pic-content {
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  background-color: #393a3d;
  position: fixed;
  box-shadow: 0px 0px 3px 0px rgba($--color-c1, .3);
  z-index: 9999;
}

.pic-box {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pic-info {
  height: 44px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  background-color: $--color-view;
  color: $--color-c6;
  text-align: left;
  display: flex;
  z-index: 2;
  position: relative;
  vertical-align: middle;
}

.pic-info>span {
  flex: 1;
  height: 44px;
  line-height: 46px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
}

.pic-content .pic-close {
  display: inline-block;
  width: 25px;
  height: 25px;
  background-color: rgba($--color-c1, .7);
  color: $--color-c6;
  text-align: center;
  line-height: 25px;
  font-size: 21px;
  top: 0px;
  position: absolute;
  right: 0px;
  cursor: pointer;
  z-index: 11;

  &:hover {
    background-color: $--color-c11;
  }
}

.pic-info>p {
  flex: 2;
  height: 44px;
  line-height: 44px;
  text-align: right;
  vertical-align: middle;
}

.pic-info>p>span {
  margin-right: 18px;
  cursor: pointer;
  font-size: 23px;
  color: #a6acb7;
  line-height: 44px;
  vertical-align: initial;
}

.pic-content .pic_scale {
  width: 75px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: $--color-c6;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 40px;
  border-radius: 20px;
  line-height: 40px;
  animation-name: zoomIn;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

.icon-hover:hover {
  color: $--color-c6;
}


.pre-list {
  height: 86px;
  padding: 10px 40px;
  background-color: $--color-view;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 11;

  >span {
    position: absolute;
    font-size: 20px;
    color: $--color-c6;
    top: 50%;
    cursor: pointer;
    padding: 10px 4px;

    &:first-of-type {
      left: 5px;
      transform: translateY(-50%) rotate(180deg);
    }

    &:last-of-type {
      right: 5px;
      transform: translateY(-50%);
    }
  }

  >div {
    overflow: auto;
    overflow-y: hidden;
    height: 72px;
    position: relative;

    &::-webkit-scrollbar {
      width: 11px;
      height: 5px;
    }

    &::-webkit-scrollbar-button {
      display: none;
      width: 11px;
      height: 5px;
    }

    &::-webkit-scrollbar-thumb {
      border-radius: 3px;
      background-color: #3b3b3b;
    }

    &::-webkit-scrollbar-track {
      background-color: $--color-view;
    }
  }

  ul {
    white-space: nowrap;
    display: inline-block;

    li {
      width: 60px;
      height: 60px;
      margin-left: 6px;
      display: inline-block;
      cursor: pointer;

      &.selected-border img {
        border: 3px solid $--color-c9;
      }
    }

    &:first-child {
      margin-left: 0;
    }

    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      border: 1px solid $--color-c3;
    }
  }
}


.pic-info .gray {
  color: #707277;
  cursor: no-drop;
}

.pic-info .gray_hover:hover {
  color: $--color-c6;
}

.pic-info .pic-num {
  font-size: 14px;
  font-style: normal;
  display: inline-block;
  vertical-align: super;
  user-select: none;
}

.pic-info .page-count {
  position: absolute;
  right: 0;
}

.pic-info .operate {
  position: relative;
  width: 100%;
  text-align: center;
}

.pic-num>span {
  vertical-align: bottom;
}

.img-box {
  position: absolute;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
}

.pic-box>img {
  max-height: 101%;
  max-width: 100%;
  position: absolute;
  z-index: 1;
  -webkit-user-select: none;

}

.pic-left-wrap {
  width: 100px;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 10;
}

.pic-right-wrap {
  width: 100px;
  height: 100%;
  position: absolute;
  right: 0px;
  top: 0px;
  z-index: 10;
}

.pic-content span.pic-left,
.pic-content span.pic-right {
  width: 47px;
  height: 47px;
  display: inline-block;
  background-color: rgba($--color-c1, .5);
  border-radius: 100%;
  color: $--color-c6;
  text-align: center;
  line-height: 47px;
  font-size: 42px;
  position: absolute;
  top: calc(50%);
  z-index: 10;
  cursor: pointer;
}

.pic-left {
  left: 20px;
  transform: rotate(180deg);
}

.pic-right {
  right: 20px;
}

.pic-right:hover,
.pic-left:hover {
  background-color: rgba($--color-c1, .6);
}

.pic-disabled {
  color: rgba($--color-c6, .3) !important;
  cursor: no-drop !important;
}

.move {
  cursor: move;
}

.pic-content .pic-scale {
  width: 75px;
  text-align: center;
  background-color: rgba($--color-c1, .7);
  color: $--color-c6;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 40px;
  border-radius: 20px;
  line-height: 40px;
  animation-name: zoomIn;
  animation-duration: 0.5s;
  animation-fill-mode: both;
  z-index: 1;
}

.pageTurning-disabled {
  color: rgba($--color-c6, .3) !important;
  cursor: no-drop !important;
}
