@import "ui-variables";
@import "ui-mixins";

*:focus, input:focus {
  outline:none;
}

.thread-list {
  order: 3;
  flex: 1;
  overflow: auto;
  -webkit-user-select: none;
  position: relative;

  .message-count {
    color: @text-color-inverse;
    background: @background-tertiary;
    padding: 4px 6px 2px 6px;
    margin-left: 1em;
  }

  .participants {
    font-size:   @font-size-large;
    font-weight: @font-weight-semi-bold;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .subject {
    font-size:   @font-size-small;
    font-weight: @font-weight-normal;
  }
  .snippet, .timestamp {
    font-size:   @font-size-small;
    font-weight: @font-weight-normal;
    color: @text-color-subtle;
  }

  .unread:not(.selected) {
    &:before {
      content: "";
      position: absolute;
      height: 99%;
      width: 5px;
      top: 0;
      left: 1px;
      background: @unread-color;
    }

    .subject {
      color: @unread-color;
    }
  }

  .selected {
    .participants {
      color: @text-color-inverse;
    }
    .subject {
      color: @text-color-inverse;
    }
    .snippet, .timestamp {
      color: @text-color-inverse-subtle;
    }
  }

  .star-button {
    font-size: 16px;
    .fa-star {
      color: rgb(239, 209, 0);
      &:hover {
        cursor: pointer;
        color: rgb(220,220,220);
      }
    }
    .fa-star-o {
      color: rgb(220,220,220);
      &:hover {
        cursor: pointer;
        color: rgb(239, 209, 0);
      }
    }
  }
}

