// // Badges // -------------------------------------------------- [class*="badge"] { display: inline-block; padding: 2px 9px; font-size: 13px; line-height: 1; color: #333; background-color: rgba(0,0,0,.15); border-radius: 100px; &.badge-inverted { padding: 0; background-color: transparent; } } // Badge modifiers // -------------------------------------------------- // Main badge .badge-primary { color: #fff; background-color: $primary-color; &.badge-inverted { color: $primary-color; } } // Positive badge .badge-positive { color: #fff; background-color: $positive-color; &.badge-inverted { color: $positive-color; } } // Negative badge .badge-negative { color: #fff; background-color: $negative-color; &.badge-inverted { color: $negative-color; } } // Badges in buttons // -------------------------------------------------- // Generic styles for all badges within default buttons [class*="button"] [class*="badge"] { font-size: 12px; padding-top: 2px; padding-bottom: 2px; margin: -2px -4px -2px 4px; background-color: rgba(0,0,0,.15); } // Styles for filled badges within filled buttons [class*="button"] .badge-inverted, [class*="button"]:active .badge-inverted { background-color: transparent; } .button-primary:active .badge-inverted, .button-positive:active .badge-inverted, .button-negative:active .badge-inverted { color: #fff; } // Position badges within block level buttons // Note: These are absolutely positioned so that text of button isn't "pushed" by badge and always // stays at true center of button .button-block [class*="badge"] { position: absolute; right: 0; margin-right: 10px; }