Sha256: 4a0675855a6cbda270e77081a8d05fb4c91d3401c605d471e972f08b7e61321f

Contents?: true

Size: 1.72 KB

Versions: 18

Compression:

Stored size: 1.72 KB

Contents

/* State */

/* Default 32px */

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

.state, /* TODO: Deprecate */
.State,
.State--draft {
  color: var(--fgColor-onEmphasis);
  background-color: var(--bgColor-neutral-emphasis);
  border: var(--borderWidth-thin) solid transparent;
  box-shadow: var(--boxShadow-thin) var(--borderColor-neutral-emphasis);
}

.State--open {
  color: var(--fgColor-onEmphasis);
  background-color: var(--bgColor-open-emphasis, var(--color-open-emphasis));
  box-shadow: var(--boxShadow-thin) var(--borderColor-open-emphasis);
}

.State--merged {
  color: var(--fgColor-onEmphasis);
  background-color: var(--bgColor-done-emphasis, var(--color-done-emphasis));
  box-shadow: var(--boxShadow-thin) var(--borderColor-done-emphasis);
}

.State--closed {
  color: var(--fgColor-onEmphasis);
  background-color: var(--bgColor-closed-emphasis, var(--color-closed-emphasis));
  box-shadow: var(--boxShadow-thin) var(--borderColor-closed-emphasis);
}

/* Small 24px */

.State--small {
  /* stylelint-disable-next-line primer/spacing */
  padding: 0 10px;
  font-size: var(--text-body-size-small);
  /* stylelint-disable-next-line primer/typography */
  line-height: var(--base-size-24);

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

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.52.2 app/components/primer/beta/state.pcss
primer_view_components-0.36.4 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.52.1 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.52.0 app/components/primer/beta/state.pcss
primer_view_components-0.36.3 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.51.0 app/components/primer/beta/state.pcss
primer_view_components-0.36.2 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.50.1 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.50.0 app/components/primer/beta/state.pcss
primer_view_components-0.36.1 app/components/primer/beta/state.pcss
primer_view_components-0.36.0 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.49.2 app/components/primer/beta/state.pcss
primer_view_components-0.35.2 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.49.1 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.49.0 app/components/primer/beta/state.pcss
primer_view_components-0.35.1 app/components/primer/beta/state.pcss
primer_view_components-0.35.0 app/components/primer/beta/state.pcss