@import "~choerodon-ui/lib/style/themes/default";

.c7n-branch {
  .c7n-pro-table-filter-select-wrapper {
    border-bottom: 1px solid #d9e6f2 !important;
  }
  .c7n-pro-table-cell {
    border-bottom: 1px solid #d9e6f2 !important;
  }
  &-table {
    &-dashBoard {
      color: rgb(247, 103, 118);
      font-size: 14px;
      margin-left: 8px;
      cursor: pointer;
      border-radius: 50%;
      padding: 3px;
      text-align: center;
      /* position: absolute; */
      &:focus,
      &:active,
      &:hover {
        background: rgba(247, 103, 118, 0.12);
      }
    }
    .@{c7n-prefix}-table-filter-bar {
      height: 40px;
      border-top: none;
    }
    .@{c7n-prefix}-table-filter-select {
      .@{c7n-prefix}-select-selection__rendered {
        padding-top: 0 !important;
        padding-left: 0 !important;
        .@{c7n-prefix}-select-selection__placeholder {
          height: 40px;
          line-height: 40px;
        }
        ul > li {
          margin-top: 9px;
        }
        .@{c7n-prefix}-select-search {
          margin-top: 0;
        }
      }
    }
    .@{c7n-prefix}-table-filter-select-icon {
      height: 100%;
      i {
        line-height: 40px;
      }
    }
    .c7n-select {
      .c7n-select-search {
        height: 40px !important;
        line-height: 40px !important;
      }
    }
  }
  .c7n-header-table {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 28px;
    margin: 12px 0 16px 0;
  }
  &-main-table {
    margin-top: 0.16rem;
  }
  .c7n-table-column {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
  }

  .c7n-table-column-commit {
    white-space: nowrap;
    overflow: hidden;
    max-width: 59px;
  }

  .c7n-tag-column-commit {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 18%;
  }

  .c7n-paginationWrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
  }

  .c7n-table-title {
    padding: 0;
    padding-bottom: 8px;
  }

  .branch-select_512 {
    width: 512px;
    margin-bottom: 20px;
  }

  .branch-user-img {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    background-color: #c5cbe8;
    color: #3f51b5;
    text-transform: uppercase;
    text-align: center;
    margin-right: 5px;
    float: left;
    background-size: 100% 100%;
  }
  .c7n-pro-output {
    line-height: 2.153 !important;
  }
}

.branch-icon-help {
  font-size: 0.14rem;
  color: rgba(0, 0, 0, 0.36);
  padding-left: 0.02rem;
  margin: 0 !important;
}

.branch-popover {
  width: 440px;
  // padding: 12px !important;

  .branch-popover-span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    overflow: hidden;
    vertical-align: top;
    margin-right: 6px;
    margin-top: 5px;
  }

  .span-master {
    background: #45a3fc;
  }

  .span-bugfix {
    background: #ffb100;
  }

  .span-custom {
    background: #af4cff;
  }

  .span-feature {
    background: #f953ba;
  }

  .span-release {
    background: #00bf96;
  }

  .span-hotfix {
    background: #f44336;
  }

  .branch-popover-content {
    width: 88%;
    display: inline-block;
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 10px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .branch-popover-p {
    margin: 0;
    line-height: 18px;
  }
}

.c7n-branch-modal {
  text-align: center;
}

.c7n-branch-modal-title {
  font-size: 20px;
  color: var(--text-color);
  text-align: left;
}

.c7n-branch-progress .c7n-progress-inner {
  width: 40px !important;
  height: 40px !important;
}

.branch-col-icon {
  font-size: 13px;
  color: var(--text-color3);
  line-height: 20px;
  display: inline-block;
}

.c7ncd-branch-issue {
  display: flex;
  color: var(--text-color3);
  padding-right: .06rem;
  margin-left: .32rem;
  overflow: hidden;

  &-label {
    line-height: .25rem;
  }

  &-item {
    color: var(--table-click-color);
    line-height: .20rem;
    overflow: hidden;

    &-title {
      display: flex;
      align-items: center;

      &-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }

    &-project {
      padding-top: .08rem;
      color: var(--text-color3);

      &-icon {
        margin-right: 6px;
        font-size: 0.2rem;
        width: .24rem;
        text-align: center;
      }
    }

    & + & {
      border-top: 1px solid var(--divider);
      margin-top: .12rem;
      padding-top: .12rem;
    }
  }

  &-expand {
    cursor: pointer;
    margin-left: .04rem;
    font-size: .2rem;
    color: var(--primary-color);
    height: 0.25rem;
    line-height: 0.25rem;
    flex-shrink: 0;
  }

  &-popover {
    .c7ncd-branch-issue-item-project-icon {
      visibility: hidden;
    }
  }
}

.c7ncd-branch-item {

  &-action {
    flex-shrink: 0;
  }

  &-branchName {
    color: var(--text-color);
  }
}
