@import '~scss/variables';

.pipelineCard {
  box-shadow: 0 4px 8px 0 rgba(36, 46, 66, 0.06);
}

.pipelineCard__toolbar {
  height: 52px;
  line-height: 52px;
  background-color: $lightest;
  box-shadow: 0 1px 0 0 $light-color03;

  button {
    margin: 0 10px;
  }

  .icon {
    margin-right: 20px;
  }
}

.pipelineCard__btnGroup {
  text-align: right;
  float: right;
}

.pipelineCard__main {
  background-color: $bg-color;
  overflow: auto;
  min-height: 550px;
  height: calc(100vh - 240px);

  pre {
    padding: 20px;
    font-size: 12px;
    line-height: 1.67;
    color: #ffffff;
    border-radius: 4px;
    background-color: #242e42;
    white-space: pre-wrap;
  }
}

.footer {
  text-align: right;
  width: 100%;
  height: 56px;
  padding-top: 12px;
  border-radius: $border-radius;
  background-color: $bg-color;
  button {
    margin-right: 20px;
  }
}

.running_tips {
  margin-left: 25px;
  color: #242e42;
}

.runningIcon {
  display: inline-block;
  width: 40px;
  height: 40px;
  animation: rotate 2s linear infinite;
  background-size: 40px;
  background-repeat: no-repeat;
  background-image: url('/assets/pipeline-running.svg');
}

.QueuedIcon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-size: 40px;
  animation: breath 2s linear infinite;
  background-repeat: no-repeat;
  background-image: url('/assets/pipeline-queued.svg');
}

.card {
  text-align: center;
  border-radius: $border-radius;
  min-height: 212px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px 0 rgba(36, 46, 66, 0.06);

  .icon {
    margin-top: 40px;
    margin-bottom: 12px;
  }
  .title {
    line-height: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #242e42;
  }
  .desc {
    margin-bottom: 8px;
    line-height: 20px;
    font-size: 12px;
    color: #79879c;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

@keyframes breath {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.4;
  }
}
