@import 'open-color/open-color.css';

.modal_container {
  padding: 30px;
  width: 50%;
  height: 80%;
  border-radius: 2px;
  background-color: var(--bg);
  box-shadow: var(--shadow4);
  display: flex;
  flex-direction: column;
  composes: baseText from 'STYLES/common.css';
  composes: common-z-index from 'STYLES/common.css';
}

.modal_header {
  display: flex;
  flex-direction: row;
}

.header {
  flex: 1;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.header_button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.button_check {
  cursor: pointer;
  user-select: none;
  margin-right: 10px;
}

.button {
  margin: 0;
}

.search_repos {
  padding: 10px 0;
  border-bottom: 1px solid var(--oc-gray-2);
}

.search_wrapper {
  display: flex;
  flex-direction: column;
}

.user_repos {
  flex: 1;
  padding: 15px 0;
  display: flex;
  flex-direction: row;
}

.repos_container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.repos_wrapper {
}

.repository {
  display: flex;
  padding: 10px 15px;
  margin: 10px 5px;
  display: inline-flex;
  flex-direction: column;
  user-select: none;
  position: relative;
  min-width: 100px;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s;
  border: 1px solid var(--oc-gray-4);
  border-radius: 2px;

  &:not(.active):hover {
    border: 1px solid var(--oc-gray-2);
    background-color: var(--oc-gray-2);
  }

  &.active {
    background-color: var(--oc-gray-4);
  }
}

.repos_header {
  color: var(--oc-gray-7);
  margin-bottom: 7px;
}

.repos_bottom {
  color: var(--oc-gray-5);
  display: flex;
  flex-direction: row;
  font-size: 12px;
}

.bottom_section {
  flex: 1;

  &:first-child {
    text-align: left;
  }

  &:last-child {
    text-align: right;
  }
}

.section_active {
  color: var(--oc-yellow-8);

  & i {
    color: var(--oc-yellow-8);
  }
}
