@import '../../../../global.scss'; // 根据实际情况调整路径

.title {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  :global(.next-tabs) {
    flex: 1;
    font-size: 0;
  }
}

.header {
  padding: 12px 32px 0;
}

.sidebar {
  height: calc(100vh - 124px);
  width: 280px;
}

.cards {
  display: flex;
  margin: -4px;
}

.card {
  @include with-border;
  width: 264px;
  height: 94px;
  padding: 24px;
  border-radius: 4px;
  cursor: pointer;
  margin: 4px;
  transition: all ease-in-out 0.3s;
}

.cardTitle {
  font-size: 16px;
  color: var(--color-text1-4, #292929);
  line-height: 20px;
}

.cardDesc {
  font-size: 12px;
  color: var(--color-fill1-6, #8b8b8b);
  line-height: 18px;
  margin-top: 8px;
}

.relation {
  line-height: 1.5;
  padding: 8px 0;
}

.versionDialog {
  width: 100vw !important;
  :global {
    .next-dialog-body {
      max-height: unset !important;
      padding: 0 !important;
      width: 100%;
    }
    .next-dialog-header {
      padding: 8px 20px;
    }
  }
}

.versionDialogWrap {
  height: calc(100vh - 250px);
  display: flex;
}

.versionDialogShaList {
  & > ul {
    width: 320px !important;
  }
}

.content {
  margin: 0 auto -24px;
  transition: all 0.3s ease;
}

.templates {
  margin: 0 -10px;
  height: calc(100vh - 198px);
  padding: 0 10px;
  overflow: auto;
  padding-bottom: 46px;
  position: relative;
  &:after {
    content: ' ';
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    background-image: linear-gradient(
      0deg,
      var(--color-white, #fff) 0%,
      rgba(255, 255, 255, 0.99) 36%,
      rgba(255, 255, 255, 0) 70%
    );
  }
}

@media (min-width: 1440px) {
  .content {
    width: 1000px;
  }
}

.mainPackage {
  border-radius: 4px;
  border: 1px solid var(--color-brand3-2, rgba(233, 237, 240, 1));
  &Head {
    background-color: var(--color-brand3-1, rgba(242, 245, 247, 1));
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text1-4, #292929);
    padding: 0 20px;
    height: 54px;
  }
  &Body {
    padding: 12px 20px;
  }
}

.repository {
  @include with-border;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin-top: 1px;
  // gap: 32px;
  display: flex;
  padding: 16px 20px;
  &Image {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 4px;
    background-color: var(--color-fill1-2, #f7f7f7);
  }
  &Info {
    flex: 1;
    padding-left: 16px;
    padding-right: 24px;
    overflow: hidden;
  }
  &Name {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 8px;
    color: var(--color-text1-7, rgba(139, 139, 139, 1));
  }
  &Branch {
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    color: var(--color-text1-3, #575757);
    &:hover {
      color: var(--color-brand1-6, #006ad4) !important;
    }
  }

}
