// Filters list
//
// A vertical list of filters.
.filter-list {
  list-style-type: none;

  &.small .filter-item {
    padding: 4px 10px;
    margin: 0 0 2px;
    font-size: 12px;
  }

  &.pjax-active .filter-item {
    color: $text-gray;
    background-color: transparent;

    &.pjax-active {
      color: $text-white;
      background-color: $bg-blue;
    }
  }
}

.filter-item {
  position: relative;
  display: block;
  padding: 8px 10px;
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 14px;
  color: $text-gray;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 3px;

  &:hover {
    text-decoration: none;
    background-color: lighten($gray-200, 3%);
  }

  &.selected {
    color: $text-white;
    background-color: $bg-blue;
  }

  .count {
    float: right;
    font-weight: $font-weight-bold;
  }

  .bar {
    position: absolute;
    top: 2px;
    right: 0;
    bottom: 2px;
    z-index: -1;
    display: inline-block;
    background-color: darken($gray-100, 2%);
  }
}
