Twitter Bootstrap set badge to no fill (or outline)?

Meltemi picture Meltemi · Jan 31, 2013 · Viewed 8.8k times · Source

Anyone know how to change a twitter bootstrap badge (or label) from solid to outlined?

enter image description here

Answer

SJousse picture SJousse · Jan 31, 2013

Add this CSS class to your badge :

.badge-outline {
    color: black;
    border: 1px solid #999;
    background-color: transparent;
}

Create overriden classes for other colors :

.badge-outline.badge-success {
    border-color: #468847;
}