@import "~@alifd/next/variables.scss";

.background-view {
  width: 260px;
  background: #fff;
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;

  .header {
    padding: 16px 16px 12px 16px;
    text-align: right;
    button {
      margin-left: 8px;
    }
  }

  .content {
    flex: 1;
    overflow: auto;
    padding: 0 16px 16px 16px;
  }

  .list {
    .tag {
      width: 100%;
      height: 129px;
      margin-bottom: 12px;
      :global {
        .#{$css-prefix}tag-body {
          width: 100%;
          padding: 0;
          cursor: pointer;
        }
      }
      .box {
        position: relative;
        height: 100%;
        user-select: none;
        .img {
          max-width: 100%;
          max-height: 100%;
          display: block;
          margin: auto;
          position: absolute;
          left: 0;
          top: 0;
          bottom: 0;
          right: 0;
        }
      }
      &::before,
      &::after {
        z-index: 1;
      }
      &:hover {
        .operation {
          display: block;
        }
      }
      .operation {
        display: none;
        // z-index: -1;
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 22px;
        text-align: center;
        background: rgba(0, 0, 0, 0.4);
        button {
          height: 100%;
          color: #fff;
          vertical-align: text-bottom;
        }
      }
    }
  }
  .upload-btn {
    // margin-top: 12px;
    width: 100%;
    height: 130px !important;
    display: flex;
    flex-direction: column;
    text-align: center;

    .content {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      color: #B5BDC7;
      .icon {
        margin-top: 48px;
        &::before {
          font-size: 12px;
        }
      }
      .text {
        display: block;
        margin-top: 10px;
      }
    }
  }
}
