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

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