@import "~assets/less/variable";

.unit {
  height: 120px;
  background-color: @body-background;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center center;
  margin-bottom: 20px;
  border-radius: 2px;
  box-shadow: @block-box-shadow;
  transform: translate3d(0, 0, 0);
  transition: transform 200ms linear,
              box-shadow 200ms linear,
              background-size 500ms linear;
  position: relative;
  cursor: pointer;

  &:hover {
    background-size: 110%;
    box-shadow: @block-active-box-shadow;
    transform: translate3d(0, -5px, 0);
  }

  &.editing {
    opacity: .3;
  }

  header {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 2px 2px 0 0;
  }

  .title {
    padding: 12px 80px 0 12px;
    color: @white;
    font-size: 1.15em;
    font-weight: normal;

    .ellipsis;
  }

  .content {
    padding: 8px 12px 24px;
    color: @white;
    font-size: .85em;

    .ellipsis;
  }

  .portalActions {
    position: absolute;
    right: 8px;
    top: 8px;

    .edit, .delete {
      opacity: .7;
      font-size: 15px;
      margin-left: 8px;
      color: @white;
      transition: transform 200ms ease;

      &:hover {
        opacity: 1;
        transform: scale(1.1, 1.1);
      }
    }
  }

  .central {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    &:hover {
      .add,.text {
        color: @blue;
        cursor: pointer;
      }
    }

    .item {
      color: @light-text-color;

      &.add {
        font-size: 28px;
      }

      &.text {
        font-size: 16px;
      }
    }
  }
}

.excludeList{
  margin: 8px 8px;
  b{
    margin-left: 6px;
  }
}

.searchAdmin, .addCol {
  padding: 0 4px;
  text-align: right;
}

@media (max-width: 768px) {
  .searchAdmin {
    margin-bottom: 8px;
  }
}

.searchUser {
  float: right;
}

.searchInputAdmin {
  margin-right: 10px;
}

.controlTab {
  overflow: auto;
  max-height: 400px;
}


