@import "../../constants/index.scss";

.actionableWrapper {
  position: relative;
  cursor: pointer;
  transition: 0.2s ease-out;
  &.active {
    background-color: $primary-color;
    pointer-events: none;
    span {
      color: #fff;
    }
  }
  &:hover {
    background-color: lighten($primary-color, 40);
  }
  &:active {
    background-color: $primary-color;
    span {
      color: #fff;
    }
  }
  > div {
    transition: 0.2s ease-out;
  }
  &:last-child {
    > div {
      border-bottom: 1px solid transparent;
    }
  }
}

.actionable {
  padding: $padding-small;
  border-bottom: 1px solid $border-color;
  transition: $transition;
  text-align: center;
  cursor: pointer;
  color: $primary-color;
  font-size: $default-font-size;
  font-weight: 400;
  pointer-events: none;
  &:hover {
    background-color: $actionable-highlight-color;
  }

  &:global(.small) {
    padding: 8px;
    .actionableSubText {
      display: none;
    }
  }
}

.actionableMainText {
  display: block;
  margin-bottom: 4px;
}

.actionableSubText {
  display: block;
  font-size: 12px;
  color: #999;
  max-width: 240px;
  white-space: nowrap;
  margin: 0 auto;
  text-overflow: ellipsis;
  overflow: hidden;
}

.actionableCreateText {
  font-weight: 500;
}

.actionableMenu {
  position: absolute;
  top: 50%;
  right: -16px;
  padding: 8px;
  transform: translate3d(100%, -50%, 0);
  display: flex;
}

.actionableMenuIcon {
  cursor: pointer;
  padding-right: 12px;
  opacity: 0.7;
  &:hover {
    opacity: 0.99;
  }
}

hr {
  height: 1px;
  border: none;
  background-color: #eee;
  margin-top: 0;
}
