Sha256: 382035d740a8f89986911a450078a281040f127ebab2188433268f87f0d805f9

Contents?: true

Size: 1.4 KB

Versions: 11

Compression:

Stored size: 1.4 KB

Contents

// Base class
//
// Requires one of the contextual, color modifier classes for `color` and
// `background-color`.

.tag {
  display: inline-block;
  padding: $tag-padding-y $tag-padding-x;
  font-size: $tag-font-size;
  font-weight: $tag-font-weight;
  line-height: 1;
  color: $tag-color;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  @include border-radius();

  // Empty tags collapse automatically
  &:empty {
    display: none;
  }
}

// Quick fix for tags in buttons
.btn .tag {
  position: relative;
  top: -1px;
}

// scss-lint:disable QualifyingElement
// Add hover effects, but only for links
a.tag {
  @include hover-focus {
    color: $tag-link-hover-color;
    text-decoration: none;
    cursor: pointer;
  }
}
// scss-lint:enable QualifyingElement

// Pill tags
//
// Make them extra rounded with a modifier to replace v3's badges.

.tag-pill {
  padding-right: $tag-pill-padding-x;
  padding-left: $tag-pill-padding-x;
  @include border-radius($tag-pill-border-radius);
}

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

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

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

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

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

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

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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
geekyll-0.1.2 _sass/geekyll/bootstrap4alpha4/_tags.scss
geekyll-0.1.1 _sass/geekyll/bootstrap4alpha4/_tags.scss
bootstrap-4.0.0.alpha5 assets/stylesheets/bootstrap/_tags.scss
geekyll-0.1.0 _sass/geekyll/bootstrap4alpha4/_tags.scss
geekyll-0.0.9 _sass/geekyll/bootstrap4alpha4/_tags.scss
flying_dutchman-0.6.0 vendor/assets/stylesheets/bootstrap/_tags.scss
bootstrap-4.0.0.alpha4 assets/stylesheets/bootstrap/_tags.scss
flying_dutchman-0.5.0 vendor/assets/stylesheets/bootstrap/_tags.scss
flying_dutchman-0.4.0 vendor/assets/stylesheets/bootstrap/_tags.scss
flying_dutchman-0.3.0 vendor/assets/stylesheets/bootstrap/_tags.scss
bootstrap-4.0.0.alpha3.1 assets/stylesheets/bootstrap/_tags.scss