diff options
Diffstat (limited to 'alphabetlearning/static/bootstrap/scss/_badge.scss')
-rw-r--r-- | alphabetlearning/static/bootstrap/scss/_badge.scss | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/alphabetlearning/static/bootstrap/scss/_badge.scss b/alphabetlearning/static/bootstrap/scss/_badge.scss new file mode 100644 index 0000000..08df1b8 --- /dev/null +++ b/alphabetlearning/static/bootstrap/scss/_badge.scss @@ -0,0 +1,29 @@ +// Base class +// +// Requires one of the contextual, color modifier classes for `color` and +// `background-color`. + +.badge { + display: inline-block; + padding: $badge-padding-y $badge-padding-x; + @include font-size($badge-font-size); + font-weight: $badge-font-weight; + line-height: 1; + color: $badge-color; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + @include border-radius($badge-border-radius); + @include gradient-bg(); + + // Empty badges collapse automatically + &:empty { + display: none; + } +} + +// Quick fix for badges in buttons +.btn .badge { + position: relative; + top: -1px; +} |