Sha256: 983c09349bd20494e346f331a0d4e9855b28ea884e92bd11356c81d92309c0f5

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

/* State */

/* Default 32px */

.state, /* TODO: Deprecate */
.State {
  display: inline-block;
  padding: 5px var(--yattho-control-medium-paddingInline-normal, 12px);
  font-size: var(--yattho-text-body-size-medium, 14px);
  font-weight: var(--base-text-weight-medium, 500);
  line-height: var(--yattho-control-medium-lineBoxHeight, 20px);
  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(--yattho-borderWidth-thin, 1px) 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(--yattho-text-body-size-small, 12px);
  line-height: var(--base-size-24, 24px);

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 app/components/yattho/beta/state.pcss
yattho_view_components-0.0.1 app/components/yattho/beta/state.pcss