@import './vars';

.vtj-components {
  min-width: 60px;
  .vtj-panel__body {
    display: flex;
    flex-direction: column;
    height: 1px;
  }
  &__search {
    padding-bottom: 5px;
    // padding: 5px 0;
  }
}

.vtj-components__item {
  position: relative;
  height: 80px;
  background-color: $--vtj-background-color-dark-9;
  margin: 5px 0;
  cursor: move;
  text-align: center;
  display: flex;
  flex-direction: column;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: $--vtj-secondary-color;
  padding: 10px;
  overflow: hidden;
  border: 1px dashed transparent;
  &:hover {
    border-color: $--vtj-border-color;
    .vtj-components__footer {
      display: block;
    }
  }
  img {
    max-width: 60px;
    max-height: 40px;
    user-select: none;
    -webkit-user-drag: none;
  }
  span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    width: 100%;
    user-select: none;
  }
}

.vtj-components__tabs {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  .el-tabs__content {
    flex-grow: 1;
    overflow: auto;
    height: 1px;
  }

  .el-collapse-item__content {
    .el-empty {
      --el-empty-padding: 0;
    }
  }
}
.vtj-components__name {
  color: $--vtj-primary-color-light-5;
  font-size: 12px;
}

.vtj-components__footer {
  height: 18px;
  background-color: rgba(0, 0, 0, 0.05);
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 12px;
  line-height: 18px;
  text-align: right;
  display: none;
  i {
    margin-right: 10px;
    cursor: pointer;
    &:hover {
      color: $--vtj-warning-color;
    }
  }
}
