Sha256: a1bab11907270d5559d90baec09c821e4c19dbb457fe554bdec5e83f497eeef4

Contents?: true

Size: 1.99 KB

Versions: 6

Compression:

Stored size: 1.99 KB

Contents

/* Labels */

/* Provide a wrapper to ensure labels stick together */
.labels {
  position: relative;
}

/* Default 20px */

.label, /* TODO: Deprecate */
.Label {
  display: inline-block;
  padding: 0 var(--base-size-6);
  font-size: var(--text-body-size-small);
  font-weight: var(--base-text-weight-medium);
  line-height: 18px;
  white-space: nowrap;
  border: var(--borderWidth-thin) solid var(--borderColor-default);
  border-radius: var(--borderRadius-full);

  &:hover {
    text-decoration: none;
  }
}

/* Large 24px */

.Label--large {
  padding: 0 var(--base-size-8);
  line-height: 22px;
}

/* Inline */

/* Doesn't increase height of parent element
** Can be used with different font-sizes */
.Label--inline {
  display: inline;
  padding: 0.12em 0.5em;
  font-size: 85%;
}

/* Contrast */

.Label--primary {
  color: var(--fgColor-default);
  border-color: var(--borderColor-neutral-emphasis);
}

.Label--secondary {
  color: var(--fgColor-muted);
  border-color: var(--borderColor-default);
}

/* Colors */

.Label--info, /* TODO: deprecate */
.Label--accent {
  color: var(--fgColor-accent);
  border-color: var(--borderColor-accent-emphasis);
}

.Label--success {
  color: var(--fgColor-success);
  border-color: var(--borderColor-success-emphasis);
}

.Label--warning, /* TODO: deprecate */
.Label--attention {
  color: var(--fgColor-attention);
  border-color: var(--borderColor-attention-emphasis);
}

.Label--severe {
  color: var(--fgColor-severe);
  border-color: var(--borderColor-severe-emphasis);
}

.Label--danger {
  color: var(--fgColor-danger);
  border-color: var(--borderColor-danger-emphasis);
}

.Label--open {
  color: var(--fgColor-open);
  border-color: var(--borderColor-open-emphasis);
}

.Label--closed {
  color: var(--fgColor-closed);
  border-color: var(--borderColor-closed-emphasis);
}

.Label--done {
  color: var(--fgColor-done);
  border-color: var(--borderColor-done-emphasis);
}

.Label--sponsors {
  color: var(--fgColor-sponsors);
  border-color: var(--borderColor-sponsors-emphasis);
}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.48.2 app/components/primer/beta/label.pcss
openproject-primer_view_components-0.48.1 app/components/primer/beta/label.pcss
openproject-primer_view_components-0.48.0 app/components/primer/beta/label.pcss
openproject-primer_view_components-0.47.1 app/components/primer/beta/label.pcss
openproject-primer_view_components-0.47.0 app/components/primer/beta/label.pcss
primer_view_components-0.34.0 app/components/primer/beta/label.pcss