Sha256: 13f2fb34e21b24d50095c89eece6ab6e04ab07a4b4807e1a9c9ef703543e46d2
Contents?: true
Size: 1.66 KB
Versions: 4
Compression:
Stored size: 1.66 KB
Contents
// stylelint-disable selector-max-specificity // 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-fg-muted); background-color: transparent; &.pjax-active { color: var(--color-fg-on-emphasis); background-color: var(--color-accent-emphasis); } } } .filter-item { position: relative; display: block; padding: $spacer-2 $spacer-3; margin-bottom: $spacer-1; overflow: hidden; font-size: $h5-size; color: var(--color-fg-muted); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-radius: $border-radius; &:hover { text-decoration: none; background-color: var(--color-canvas-subtle); } &.selected, &[aria-selected='true'], &[aria-current]:not([aria-current='false']) { color: var(--color-fg-on-emphasis); background-color: var(--color-accent-emphasis); // fallback :focus state &:focus { @include focusOutlineOnEmphasis; // remove fallback :focus if :focus-visible is supported &:not(:focus-visible) { outline: solid 1px transparent; box-shadow: none; } } // default focus state &:focus-visible { @include focusOutlineOnEmphasis; } } .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-neutral-subtle); } }
Version data entries
4 entries across 4 versions & 1 rubygems