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

  &::after {
    content: attr(data-badge);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.4rem;
    background-color: @core-color;
    display: block;
    width: 2rem;
    height: 2rem;
    padding: .3rem .1rem;
    border-radius: 50%;
    position: absolute;
    top: -1rem;
    right: -2.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}