@import '~scss/variables';
@import '~scss/mixins';

.pipelineCard {
  width: 256px;
  text-align: center;
  white-space: normal;
}

.pipelineCard--error {
  .pipelineCard__title {
    background-color: #ca2621;
  }

  .pipelineCard__content {
    border: 1px solid #ca2621;
  }
}

.pipelineCard--queue {
  .pipelineCard__title {
    background-color: #6b7b95;

    &::before {
      content: '';
      display: inline-block;
      width: 20px;
      height: 20px;
      background-size: 16px;
      background-image: url('/assets/Loading.svg');
      background-repeat: no-repeat;
      background-position: center;
      vertical-align: middle;
      margin-right: 5px;
    }
  }
}

.pipelineCard--paused {
  .pipelineCard__title {
    background-color: #f5a623;
  }

  .content__title__paused {
    color: #f5a623;
  }

  button {
    min-width: 60px;
    margin: 10px 10px 0 0;
  }
  button + button {
    margin: 0 !important;
  }
}

.pipelineCard__title {
  display: inline-block;
  position: relative;
  top: 18px;
  padding: 0 20px 0;
  height: 32px;
  max-width: 100%;
  font-size: 12px;
  font-weight: bolder;
  line-height: 32px;
  color: #ffffff;
  border-radius: 16px;
  background-color: #242e42;
}

.pipelineCard__content {
  padding: 22px 12px 12px;
  text-align: left;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px 0 rgba(36, 46, 66, 0.06);
}

.pipelineCard__item {
  padding: 8px;
  margin-bottom: 8px;
  min-height: 56px;
  line-height: 20px;
  border-radius: 4px;
  background-color: $lightest;

  .content__title {
    font-weight: 500;
  }

  .content__detail {
    color: #242e42;
  }
}

.content__status {
  color: $green;

  span {
    vertical-align: middle;
  }

  :global {
    .pipeline_status_icon {
      width: 12px;
      height: 12px;
      background-size: 12px;
      margin-top: -2px;
    }
  }
}

.content__status__error {
  color: #ca2621;
}

.content__status__quene {
  color: black;
}

.errorMessage {
  color: #ca2621;
}

.pipeline_column {
  display: inline-block;
  margin: 0 10px;

  vertical-align: top;
}
