Sha256: 296dfa42243d161e1b2bf9781f75c79619878900315a9787b4ea103967e53f00

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 KB

Contents

//
// Labels
// --------------------------------------------------

.label {
  display: inline;
  padding: .2em .6em .3em;
  font-size: 75%;
  font-weight: bold;
  line-height: 1;
  color: $label-color;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25em;

  // Add hover effects, but only for links
  &[href] {
    &:hover,
    &:focus {
      color: $label-link-hover-color;
      text-decoration: none;
      cursor: pointer;
    }
  }

  // Empty labels collapse automatically (not available in IE8)
  &:empty {
    display: none;
  }
}

// Colors
// Contextual variations (linked labels get darker on :hover)

.label-default {
  @include label-variant($label-default-bg);
}

.label-primary {
  @include label-variant($label-primary-bg);
}

.label-success {
  @include label-variant($label-success-bg);
}

.label-info {
  @include label-variant($label-info-bg);
}

.label-warning {
  @include label-variant($label-warning-bg);
}

.label-danger {
  @include label-variant($label-danger-bg);
}

.label-pink {
  @include label-variant($label-pink-bg);
}

.label-muted {
  @include label-variant($label-muted-bg);
}

.label-banana {
  @include label-variant($label-banana-bg);
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cg_app_base-1.1.1 app/assets/stylesheets/flatty/bootstrap/bootstrap/_labels.scss
cg_app_base-1.0.78 app/assets/stylesheets/flatty/bootstrap/bootstrap/_labels.scss
cg_app_base-1.0.62 app/assets/stylesheets/flatty/bootstrap/bootstrap/_labels.scss
cg_app_base-1.0.56 app/assets/stylesheets/flatty/bootstrap/bootstrap/_labels.scss
cg_app_base-1.0.55 app/assets/stylesheets/flatty/bootstrap/bootstrap/_labels.scss
cg_app_base-1.0.54 app/assets/stylesheets/flatty/bootstrap/bootstrap/_labels.scss
cg_app_base-1.0.52 app/assets/stylesheets/flatty/bootstrap/bootstrap/_labels.scss
cg_app_base-1.0.51 app/assets/stylesheets/flatty/bootstrap/bootstrap/_labels.scss