Sha256: 687ed49345dd2a9ade76ace7e93ae53a21456c4e5858ffa579d3e2617aa32a03

Contents?: true

Size: 1.07 KB

Versions: 5

Compression:

Stored size: 1.07 KB

Contents

.badge {
  background-color: var(--badge-background, var(--color-bg));
  border-radius: var(--rounded-md);
  border: 1px solid var(--badge-border-color, var(--color-border));
  box-shadow: var(--badge-box-shadow, none);
  color: var(--badge-color, var(--color-text));
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--size-0_5) var(--size-2_5);
}

.badge--primary {
  --badge-background: var(--color-primary);
  --badge-border-color: transparent;
  --badge-box-shadow: var(--shadow-sm);
  --badge-color: var(--color-text-reversed);
}

.badge--secondary {
  --badge-background: var(--color-secondary);
  --badge-border-color: transparent;
  --badge-box-shadow: none;
  --badge-color: var(--color-text);
}

.badge--positive {
  --badge-background: var(--color-positive);
  --badge-border-color: transparent;
  --badge-box-shadow: var(--shadow-sm);
  --badge-color: white;
}

.badge--negative {
  --badge-background: var(--color-negative);
  --badge-border-color: transparent;
  --badge-box-shadow: var(--shadow-sm);
  --badge-color: white;
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
css-zero-1.0.4 lib/generators/css_zero/add/templates/app/assets/stylesheets/badge.css
css-zero-1.0.3 lib/generators/css_zero/add/templates/app/assets/stylesheets/badge.css
css-zero-1.0.2 lib/generators/css_zero/add/templates/app/assets/stylesheets/badge.css
css-zero-1.0.1 lib/generators/css_zero/add/templates/app/assets/stylesheets/badge.css
css-zero-1.0.0 lib/generators/css_zero/add/templates/app/assets/stylesheets/badge.css