Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | Custom Bootstrap Badges |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | .badge { |
||
| 6 | font-size: 11px !important; |
||
| 7 | font-weight: 300; |
||
| 8 | text-align: center; |
||
| 9 | height: 18px; |
||
| 10 | padding: 3px 6px 3px 6px; |
||
| 11 | -webkit-border-radius: 12px !important; |
||
| 12 | -moz-border-radius: 12px !important; |
||
| 13 | border-radius: 12px !important; |
||
| 14 | text-shadow:none !important; |
||
| 15 | text-align: center; |
||
| 16 | vertical-align: middle; |
||
| 17 | |||
| 18 | &.badge-roundless { |
||
| 19 | -webkit-border-radius: 0 !important; |
||
| 20 | -moz-border-radius: 0 !important; |
||
| 21 | border-radius: 0 !important; |
||
| 22 | } |
||
| 23 | |||
| 24 | &.badge-empty { |
||
| 25 | display: inline-block; |
||
| 26 | padding: 0; |
||
| 27 | min-width: 8px; |
||
| 28 | height: 8px; |
||
| 29 | width: 8px; |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | /* Badge variants */ |
||
| 34 | |||
| 35 | @mixin badge-variant($bg-color) { |
||
| 36 | background-color: $bg-color; |
||
| 37 | background-image: none; |
||
| 38 | } |
||
| 39 | |||
| 40 | .badge-default { |
||
| 41 | @include badge-variant($brand-default); |
||
| 42 | } |
||
| 43 | |||
| 44 | .badge-primary { |
||
| 45 | @include badge-variant($brand-primary); |
||
| 46 | } |
||
| 47 | |||
| 48 | .badge-info { |
||
| 49 | @include badge-variant($brand-info); |
||
| 50 | } |
||
| 51 | |||
| 52 | .badge-success { |
||
| 53 | @include badge-variant($brand-success); |
||
| 54 | } |
||
| 55 | |||
| 56 | .badge-danger { |
||
| 57 | @include badge-variant($brand-danger); |
||
| 58 | } |
||
| 59 | |||
| 60 | .badge-warning { |
||
| 61 | @include badge-variant($brand-warning); |
||
| 62 | } |
||
| 63 | |||
| 64 | /* Fix badge position for navs */ |
||
| 65 | |||
| 66 | .nav.nav-pills, |
||
| 67 | .nav.nav-stacked { |
||
| 68 | > li { |
||
| 69 | > a { |
||
| 70 | > .badge { |
||
| 71 | margin-top: -2px; |
||
| 72 | } |
||
| 73 | } |
||
| 74 | } |
||
| 75 | } |
||
| 76 | |||
| 77 | /*** |
||
| 78 | Dropdown Menu Badges |
||
| 79 | ***/ |
||
| 80 | |||
| 81 | .dropdown-menu { |
||
| 82 | > li { |
||
| 83 | > a { |
||
| 84 | > .badge { |
||
| 85 | position: absolute; |
||
| 86 | margin-top: 1px; |
||
| 87 | right: 3px; |
||
| 88 | display: inline; |
||
| 89 | font-size: 11px; |
||
| 90 | font-weight: 300; |
||
| 91 | text-shadow:none; |
||
| 92 | height: 18px; |
||
| 93 | padding: 3px 6px 3px 6px; |
||
| 94 | text-align: center; |
||
| 95 | vertical-align: middle; |
||
| 96 | -webkit-border-radius: 12px !important; |
||
| 97 | -moz-border-radius: 12px !important; |
||
| 98 | border-radius: 12px !important; |
||
| 99 | } |
||
| 100 | } |
||
| 101 | } |
||
| 102 | |||
| 103 | &.badge-roundless { |
||
| 104 | -webkit-border-radius: 0 !important; |
||
| 105 | -moz-border-radius: 0 !important; |
||
| 106 | border-radius: 0 !important; |
||
| 107 | } |
||
| 108 | } |