@import '../../mixins';

dialog#conflicts-dialog {
  width: 500px;

  .summary {
    margin-bottom: 20px;
  }

  .dialog-header h1 {
    font-weight: var(--font-weight-light);
  }

  .dialog-content {
    padding-bottom: var(--spacing);
  }

  .green-circle {
    background-color: var(--color-new);
    color: var(--background-color);
    border-radius: 50%;
    height: 22px;
    width: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  ul {
    list-style: none;
    padding: 0 var(--spacing-double);
    margin: 0 calc(-1 * var(--spacing-double));
    max-height: 285px;
    overflow-y: auto;

    li {
      margin-bottom: var(--spacing-double);
      padding-left: 0;
    }

    li:last-of-type {
      margin-bottom: calc(var(--spacing) * 2);
    }

    li.unmerged-file-status-resolved,
    li.unmerged-file-status-conflicts {
      display: flex;
      flex-flow: row nowrap;

      .file-octicon {
        margin-right: var(--spacing);
      }

      .column-left {
        display: flex;
        flex-flow: column nowrap;
        flex-grow: 1;
        min-width: 0;
        align-items: start;
        padding-right: var(--spacing);

        .path-text-component {
          text-overflow: ellipsis;
          max-width: 100%;
        }
      }

      .action-buttons {
        margin-left: auto;
        flex-shrink: 0;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;

        .resolve-arrow-menu {
          line-height: 18px;
        }
      }

      .undo-button {
        align-self: center;
        margin-right: var(--spacing-half);
        flex: 0 0 auto;
      }

      .green-circle:last-child {
        margin-left: auto;
        flex-shrink: 0;
        flex: 0 0 auto;
        align-self: center;
      }
    }

    .unmerged-file-status-resolved .file-conflicts-status {
      color: var(--color-new);
    }

    .unmerged-file-status-conflicts {
      .file-conflicts-status {
        color: var(--color-conflicted);
      }

      .command-line-hint {
        color: var(--text-secondary-color);
      }
    }
  }

  .all-conflicts-resolved {
    display: flex;
    flex-flow: row nowrap;
    padding: var(--spacing) 0 var(--spacing-double);

    .message {
      padding-left: var(--spacing);
      padding-top: var(--spacing-third);
    }
  }

  .arrow-menu {
    .octicon {
      width: 10px;
      height: 14px;
      pointer-events: none;
    }
  }
}
