@import "octicon-mixins.less";

.select-list {
  .loading {
    .loading-message:before {
      font-family: 'Octicons Regular';
      font-size: 1.1em;
      width: 1.1em;
      height: 1.1em;
      margin-right: 5px;
      -webkit-font-smoothing: antialiased;
      content: '\f09e';
    }

    .badge {
      margin-left: 10px;
    }
  }

  ol {
    position: relative;
    overflow-y: auto;
    max-height: 312px;
    margin: 0;
    padding: 0;

    &:empty {
      border: none;
    }

    li {
      padding: 10px;
      display: block;

      &.two-lines {
        padding: 5px 10px 5px 10px;
      }

      .primary-line, .secondary-line {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }
    }

    li:last-child {
      border-bottom: none;
    }

    li.active-item {
      .mini-icon(confirm, 14px);

      &:before {
        margin-right: 5px;
      }
    }

    li.inactive-item {
      padding-left: 29px;
    }

    li .right {
      float: right;
    }

    .key-binding {
      border-radius: 2px;
      margin-left: 5px;
      padding: 3px;
      font-size: 11px;
    }
  }
}

@import "octicon-mixins.less";

.select-list {
  .loading {
    .loading-message {
      .mini-icon(hourglass);

      &:before {
        font-size: 1.1em;
        width: 1.1em;
        height: 1.1em;
        margin-right: 5px;
      }
    }

    .badge {
      margin-left: 10px;
    }
  }

  ol {
    position: relative;
    overflow-y: auto;
    max-height: 312px;
    margin: 0;
    padding: 0;

    &:empty {
      border: none;
    }

    li {
      padding: 10px;
      display: block;

      &.two-lines {
        padding: 5px 10px 5px 10px;
      }

      .primary-line, .secondary-line {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }
    }

    li:last-child {
      border-bottom: none;
    }

    li.active-item {
      .mini-icon(confirm, 14px);

      &:before {
        margin-right: 5px;
      }
    }

    li.inactive-item {
      padding-left: 29px;
    }

    li .right {
      float: right;
    }

    .key-binding {
      border-radius: 2px;
      margin-left: 5px;
      padding: 3px;
      font-size: 11px;
    }
  }
}

Use mini-icon helper for loading-message
Use mini-icon helper for loading-message
