CoreFiles by mySites.guru
_badge.scss29 lines, 624 bytes, from Joomla_4.2.3-Stable-Full_Package.zip
Raw History Compare with 4.2.2
md5
010407932e86f02aefed2e15717a8d2b
sha1
3a71c4c05ed2c07459c52d5fd6441d556ed1038b
sha256
2474f9e2da271fc3d65e95defd96629245b32507dc743ddf11153a726069d9c5
// Base class
//
// Requires one of the contextual, color modifier classes for `color` and
// `background-color`.

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

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

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

The same content is in 71 releases, Joomla 4.0.0-beta7 to 4.3.0-alpha2. See them all, or every version of this file.