Sha256: 4570cb9ba23d9ac527ed2dbf4f720a2359a89c2f39d6587b2966516070a20e1d

Contents?: true

Size: 1.04 KB

Versions: 180

Compression:

Stored size: 1.04 KB

Contents

// Badges
span.badge {
  min-width: 3rem;
  padding: 0 6px;
  margin-left: 14px;
  text-align: center;
  font-size: 1rem;
  line-height: $badge-height;
  height: $badge-height;
  color: color('grey', 'darken-1');
  float: right;
  box-sizing: border-box;

  &.new {
    font-weight: 300;
    font-size: 0.8rem;
    color: #fff;
    background-color: $badge-bg-color;
    border-radius: 2px;
  }
  &.new:after {
    content: " new";
  }

  &[data-badge-caption]::after {
    content: " " attr(data-badge-caption);
  }
}

// Special cases
nav ul a span.badge {
  display: inline-block;
  float: none;
  margin-left: 4px;
  line-height: $badge-height;
  height: $badge-height;
  -webkit-font-smoothing: auto;
}

// Line height centering
.collection-item span.badge {
  margin-top: calc(#{$collection-line-height / 2} - #{$badge-height / 2});
}
.collapsible span.badge {
  margin-left: auto;
}
.sidenav span.badge {
  margin-top: calc(#{$sidenav-line-height / 2} - #{$badge-height / 2});
}

table span.badge {
  display: inline-block;
  float: none;
  margin-left: auto;
}

Version data entries

180 entries across 180 versions & 6 rubygems

Version Path
j1-template-2023.4.0 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.3.3 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.3.2 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.3.1 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.3.0 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.2.7 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.2.6 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.2.5 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.2.4 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.2.3 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.2.2 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.2.1 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.2.0 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.1.0 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.0.17 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.0.16 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.0.15 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.0.14 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.0.13 assets/themes/j1/modules/materialize/scss/components/_badges.scss
j1-template-2023.0.12 assets/themes/j1/modules/materialize/scss/components/_badges.scss