Sha256: b744f404cc70d899eaf489ffcc5331b0287b9714373deb92a255129fcdbf79ee

Contents?: true

Size: 969 Bytes

Versions: 4

Compression:

Stored size: 969 Bytes

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);
  }
}
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;
}
.side-nav span.badge {
  margin-top: calc(#{$sidenav-line-height / 2} - #{$badge-height / 2});
}

Version data entries

4 entries across 3 versions & 2 rubygems

Version Path
materialize-sass-0.100.2.1 app/assets/stylesheets/materialize/components/_badges.scss
jekyll-theme-anc-0.1.2 _sass/materialize-css/components/_badges.scss
jekyll-theme-anc-0.1.2 _sass/materialize/components/_badges.scss
materialize-sass-0.100.2 app/assets/stylesheets/materialize/components/_badges.scss