Sha256: f98414107b07de31e9791a96b57ec48c4cd53b4154d6711052e6c98f5cba4749

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 KB

Contents

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


// Base classes
.label {
  padding: .25em .6em;
  font-size: 75%;
  font-weight: 500;
  color: #fff;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
  background-color: @grayLight;
  border-radius: .25em;
}

// Hover state, but only for links
a.label {
  &:hover,
  &:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
  }
}

// Colors
// Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
.label {
  // Danger (red)
  &-danger            { background-color: @label-danger-bg; }
  &-danger[href]      { background-color: darken(@label-danger-bg, 10%); }
  // Warnings (orange)
  &-warning           { background-color: @label-warning-bg; }
  &-warning[href]     { background-color: darken(@label-warning-bg, 10%); }
  // Success (green)
  &-success           { background-color: @label-success-bg; }
  &-success[href]     { background-color: darken(@label-success-bg, 10%); }
  // Info (turquoise)
  &-info              { background-color: @label-info-bg; }
  &-info[href]        { background-color: darken(@label-info-bg, 10%); }
}

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
padrino-admin-0.11.2 lib/padrino-admin/bootstrap-less/labels.less
bootstrap3-wip-rails-0.1.2 vendor/assets/stylesheets/labels.less
padrino-admin-0.11.1 lib/padrino-admin/bootstrap-less/labels.less