Badges, Labels and Stickers
Badges
Default Primary Success Info Warning DangerBadges help highlight important information such as notifications or new and unread messages. Badges have circular borders by default, for rounded borders, See labels.
<span class="badge badge-default">Default</span>
<span class="badge badge-primary">Primary</span>
<span class="badge badge-success">Success</span>
<span class="badge badge-info">Info</span>
<span class="badge badge-warning">Warning</span>
<span class="badge badge-danger">Danger</span>
Badge with Links
<span class="badge badge-default badge-sm">
Small Badge
<a href="#1">
<span aria-label="icon-times" class="lexicon-icon-container" role="img">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-times">
<use xlink:href="../../images/icons/icons.svg#times"></use>
</svg>
</span>
</a>
</span>
<span class="badge badge-primary">
Default Badge
<a href="#1">
<span aria-label="icon-times" class="lexicon-icon-container" role="img">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-times">
<use xlink:href="../../images/icons/icons.svg#times"></use>
</svg>
</span>
</a>
</span>
<span class="badge badge-lg badge-success">
Large Badge
<a href="#1">
<span aria-label="icon-times" class="lexicon-icon-container" role="img">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-times">
<use xlink:href="../../images/icons/icons.svg#times"></use>
</svg>
</span>
</a>
</span>
<span class="badge badge-default badge-sm">
Small Badge
<a href="#1">
<span aria-hidden="true" class="glyphicon glyphicon-remove"></span>
</a>
</span>
<span class="badge badge-primary">
Default Badge
<a href="#1">
<span aria-hidden="true" class="glyphicon glyphicon-remove"></span>
</a>
</span>
<span class="badge badge-lg badge-success">
Large Badge
<a href="#1">
<span aria-hidden="true" class="icon-remove"></span>
</a>
</span>
Labels
Default Primary Success Info Warning DangerUse labels to organize groups of items in your application. Labels have rounded borders by default, for circular borders, See badges.
<span class="label label-default">Default</span>
<span class="label label-primary">Primary</span>
<span class="label label-success">Success</span>
<span class="label label-info">Info</span>
<span class="label label-warning">Warning</span>
<span class="label label-danger">Danger</span>
Label with Links
<span class="label label-default label-sm">
Small Label
<a href="#1">
<span aria-label="icon-times" class="lexicon-icon-container" role="img">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-times">
<use xlink:href="../../images/icons/icons.svg#times"></use>
</svg>
</span>
</a>
</span>
<span class="label label-primary">
Default Label
<a href="#1">
<span aria-label="icon-times" class="lexicon-icon-container" role="img">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-times">
<use xlink:href="../../images/icons/icons.svg#times"></use>
</svg>
</span>
</a>
</span>
<span class="label label-lg label-success">
Large Label
<a href="#1">
<span aria-label="icon-times" class="lexicon-icon-container" role="img">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-times">
<use xlink:href="../../images/icons/icons.svg#times"></use>
</svg>
</span>
</a>
</span>
<span class="label label-default label-sm">
Small Label
<a href="#1">
<span aria-hidden="true" class="icon-remove"></span>
</a>
</span>
<span class="label label-primary">
Default Label
<a href="#1">
<span aria-hidden="true" class="glyphicon glyphicon-remove"></span>
</a>
</span>
<span class="label label-lg label-success">
Large Label
<a href="#1">
<span aria-hidden="true" class="icon-remove"></span>
</a>
</span>
Stickers
Stickers are absolutely positioned monospaced badges/labels, place them anywhere relative to your container. It is positioned in the top left corner by default. The positional sticker classes
sticker-bottom-left
,sticker-top-right
, andsticker-bottom-right
will position the sticker in each corner.
<div class="aspect-ratio">
<img alt="thumbnail" src="thumbnail.jpg">
<span class="sticker sticker-danger">PDF</span>
</div>
<div class="aspect-ratio">
<img alt="thumbnail" src="thumbnail.jpg">
<span class="sticker sticker-bottom-left sticker-danger">PDF</span>
</div>
<div class="aspect-ratio">
<img alt="thumbnail" src="thumbnail.jpg">
<span class="sticker sticker-danger sticker-top-right">PDF</span>
</div>
<div class="aspect-ratio">
<img alt="thumbnail" src="thumbnail.jpg">
<span class="sticker sticker-bottom-right sticker-danger">PDF</span>
</div>
<span class="sticker sticker-default sticker-static">133</span>
<span class="sticker sticker-danger sticker-static">133</span>
<span class="sticker sticker-info sticker-static">133</span>
<span class="sticker sticker-primary sticker-static">133</span>
<span class="sticker sticker-static sticker-success">133</span>
<span class="sticker sticker-static sticker-warning">133</span>
Sticker Sizes
133 133 133Stickers come in 3 different sizes, small, regular and large. Create your own custom size by changing the
width
,height
,line-height
, andfont-size
. You can also use the sass monospace mixin to change the width and height e.g.@include monospace(30px);
.
<span class="sticker sticker-default sticker-sm sticker-static">133</span>
<span class="sticker sticker-primary sticker-static">133</span>
<span class="sticker sticker-lg sticker-static sticker-success">133</span>
Sticker Shapes
133 133 133Change the borders with
sticker-circle
,sticker-rounded
, orsticker-square
.
<span class="sticker sticker-circle sticker-default sticker-static">133</span>
<span class="sticker sticker-primary sticker-rounded sticker-static">133</span>
<span class="sticker sticker-square sticker-static sticker-success">133</span>
Add class
sticker-outside
in conjunction with sticker positions to position the sticker on the outside corners.
<span class="sticker sticker-danger sticker-outside sticker-sm">PDF</span>
<span class="sticker sticker-bottom sticker-danger sticker-outside sticker-sm">PDF</span>
<span class="sticker sticker-danger sticker-outside sticker-right sticker-sm">PDF</span>
<span class="sticker sticker-bottom sticker-danger sticker-outside sticker-right sticker-sm">PDF</span>