Sha256: 33787a42155ac2f3b497b3d5b6394db90dfda6494c6b2ee7704e872ad0131f29

Contents?: true

Size: 1.46 KB

Versions: 19

Compression:

Stored size: 1.46 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(--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 {
  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

19 entries across 19 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.48.2 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.48.1 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.48.0 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.47.1 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.47.0 app/components/primer/beta/state.pcss
primer_view_components-0.34.0 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.46.1 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.46.0 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.45.0 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.44.3 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.44.2 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.44.1 app/components/primer/beta/state.pcss
primer_view_components-0.33.0 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.44.0 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.43.1 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.43.0 app/components/primer/beta/state.pcss
primer_view_components-0.32.0 app/components/primer/beta/state.pcss
openproject-primer_view_components-0.42.0 app/components/primer/beta/state.pcss
primer_view_components-0.31.0 app/components/primer/beta/state.pcss