Summary Files Commits Branches @commit @diff @stats
path: root / src / badges.less
blob: f1e25120ca6ba224929c35942a6a036250a88e4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Badges
.badge {
  position: relative;

  &[data-badge]::after {
    background: @core-color;
    background-clip: padding-box;
    border: .1rem solid #fff;
    border-radius: 1rem;
    color: @core-light-color;
    content: attr(data-badge);
    display: inline-block;
    font-size: 1.1rem;
    height: 1.8rem;
    line-height: 1.2rem;
    min-width: 1.8rem;
    padding: .2rem .5rem;
    text-align: center;
    transform: translate(-.2rem, -.8rem);
    white-space: nowrap;
  }
}