Sha256: 04d891555f0776ba2d2202583c1c9ef84821660ce372813cb6e2118cab8c6c98

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

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

  &.small .filter-item {
    // stylelint-disable-next-line primer/spacing
    padding: 6px 12px;
    font-size: $font-size-small;
  }

  &.pjax-active .filter-item {
    color: var(--color-text-secondary);
    background-color: transparent;

    &.pjax-active {
      color: var(--color-text-inverse);
      background-color: var(--color-bg-info-inverse);
    }
  }
}

.filter-item {
  position: relative;
  display: block;
  padding: $spacer-2 $spacer-3;
  margin-bottom: $spacer-1;
  overflow: hidden;
  font-size: $h5-size;
  color: var(--color-text-secondary);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  border-radius: $border-radius;

  &:hover {
    text-decoration: none;
    background-color: var(--color-bg-tertiary);
  }

  &.selected,
  &[aria-selected=true],
  &[aria-current]:not([aria-current=false]) {
    color: var(--color-state-selected-primary-text);
    background-color: var(--color-state-selected-primary-bg);
  }

  .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: var(--color-filter-item-bar-bg);
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
primery-0.1.0 _sass/@primer/css/navigation/filter-list.scss