/**
 * !! NOTE: Do not add more code in this file:
 *
 * https://gitlab.com/gitlab-org/gitlab/-/issues/267602
 *
 * For new pipeline CSS please consider:
 *
 * For pipelines tables and lists:
 * - `app/assets/stylesheets/page_bundles/pipelines.scss`
 *
 * For individual pipelines and mini-pipelines:
 * - `app/assets/stylesheets/page_bundles/pipeline.scss`
 *
**/

.ci-table {
  .avatar {
    margin-left: 0;
    float: none;
  }

  .branch-commit {
    .ref-name {
      font-weight: $gl-font-weight-bold;
      max-width: 100px;
      overflow: hidden;
      display: inline-block;
      white-space: nowrap;
      vertical-align: middle;
      text-overflow: ellipsis;
    }

    svg {
      height: 14px;
      width: 14px;
      vertical-align: middle;

      &:not(.text-warning) {
        fill: $gl-text-color-secondary;
      }
    }

    .sprite {
      width: 12px;
      height: 12px;
      fill: $gl-text-color;
    }

    .commit-sha {
      color: $blue-600;
    }

    .badge {
      margin-right: 4px;
    }

    .label-container {
      font-size: 0;

      .badge {
        margin-top: 5px;
      }
    }
  }

  .duration,
  .finished-at {
    color: $gl-text-color-secondary;
    margin: 0;
    white-space: nowrap;

    svg {
      width: 12px;
      height: 12px;
      vertical-align: middle;
      margin-right: 4px;
    }
  }

  .build-link a {
    color: $gl-text-color;
  }
}

@include media-breakpoint-down(sm) {
  .top-bar {
    .truncated-info {
      white-space: nowrap;
      overflow: hidden;
      max-width: 220px;
      text-overflow: ellipsis;
    }
  }
}
