Debian Codegraph @

style/_badge.scss

raw
1 // Adapted from Bootstrap v5.0.2 (https://getbootstrap.com/)
2 // Copyright 2011-2019 The Bootstrap Authors
3 // Copyright 2011-2019 Twitter, Inc.
4 // Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
6 .sd-badge {
7 display: inline-block;
8 padding: 0.35em 0.65em;
9 font-size: 0.75em;
10 font-weight: 700;
11 line-height: 1;
12 text-align: center;
13 white-space: nowrap;
14 vertical-align: baseline;
15 border-radius: 0.25rem;
16
17 // Empty badges collapse automatically
18 &:empty {
19 display: none;
20 }
21 }
22
23 // Remove underline
24 a.sd-badge {
25 text-decoration: none;
26 }
27
28 // Quick fix for badges in buttons
29 .sd-btn .sd-badge {
30 position: relative;
31 top: -1px;
32 }
33
34 // note badge colors were removed in v5