_badges.scss 612 字节
Newer Older
C
chomik 已提交
1
.badge {
C
codecalm 已提交
2
  @include subheader(false);
3 4
  background: $gray-200;

C
chomik 已提交
5 6 7
  @at-root a#{&} {
    color: $white;
  }
C
chomik 已提交
8 9

  &:empty {
C
chomik 已提交
10
    display: inline-block;
C
chomik 已提交
11 12 13 14 15
    width: 8px;
    min-width: 0;
    height: 8px;
    min-height: auto;
    padding: 0;
C
chomik 已提交
16
    border-radius: 50%;
C
chomik 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
  }
}

.badge-up {
  position: absolute;
  top: 25%;
  right: 0;
  min-width: 1rem;
  min-height: 1rem;
  padding: 0 .25rem;
  line-height: 1rem;
  background-clip: padding-box;
  transform: translate(0%, -50%);
}

//bordered
C
chomik 已提交
33 34 35
.badge-outline {
  background-color: transparent;
  border: 1px solid currentColor;
C
chomik 已提交
36
}
C
avatars  
chomik 已提交
37 38 39 40

.badge-pill {
  border-radius: 100px;
}