Sha256: d142d5d1bbacfa5d8d00eec023060179767c4ffc7cd5642a8d3c27a8785455ee

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

/* State */

/* Default 32px */

.state, /* TODO: Deprecate */
.State {
  display: inline-block;
  padding: 5px var(--control-medium-paddingInline-normal);
  font-size: var(--text-body-size-medium);
  font-weight: var(--base-text-weight-medium);
  line-height: var(--control-medium-lineBoxHeight);
  text-align: center;
  white-space: nowrap;
  border-radius: 2em;
}

.state, /* TODO: Deprecate */
.State,
.State--draft {
  color: var(--color-fg-on-emphasis);
  background-color: var(--color-neutral-emphasis);
  border: var(--borderWidth-thin) solid transparent;
}

.State--open {
  color: var(--color-fg-on-emphasis);
  background-color: var(--color-open-emphasis);
}

.State--merged {
  color: var(--color-fg-on-emphasis);
  background-color: var(--color-done-emphasis);
}

.State--closed {
  color: var(--color-fg-on-emphasis);
  background-color: var(--color-closed-emphasis);
}

/* Small 24px */

.State--small {
  padding: 0 10px;
  font-size: var(--text-body-size-small);
  line-height: var(--base-size-24);

  & .octicon {
    width: 1em; /* Ensures different icons don't change State indicator width */
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

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