Sha256: b2167999e9ab38ae8571e6953a554d3de16e908e39f4eb29039cd5a9b19a6853

Contents?: true

Size: 927 Bytes

Versions: 3

Compression:

Stored size: 927 Bytes

Contents

/* Counter */

.Counter {
  display: inline-block;
  min-width: var(--base-size-20); /* makes sure it's a circle with just one digit */
  padding: 0 6px;
  font-size: var(--text-body-size-small);
  font-weight: var(--base-text-weight-medium);
  line-height: calc(var(--base-size-20) - var(--borderWidth-thin) * 2); /* 20px - 2px for the borders */
  color: var(--color-fg-default);
  text-align: center;
  background-color: var(--color-neutral-muted);
  border: var(--borderWidth-thin) solid var(--color-counter-border);
  border-radius: 2em;

  &:empty {
    display: none;
  }

  /* Is this selector used? could not find any use of it */
  & .octicon {
    vertical-align: text-top;
    opacity: 0.8;
  }
}

.Counter--primary {
  color: var(--color-fg-on-emphasis);
  background-color: var(--color-neutral-emphasis);
}

.Counter--secondary {
  color: var(--color-fg-muted);
  background-color: var(--color-neutral-subtle);
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
primer_view_components-0.4.0 app/components/primer/beta/counter.pcss
primer_view_components-0.3.1 app/components/primer/beta/counter.pcss
primer_view_components-0.2.0 app/components/primer/beta/counter.pcss