Welcome to mirror list, hosted at ThFree Co, Russian Federation.

badges.less « src - github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7669efe19248d8e97b439e953c52aa39a4a02960 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Badges
.badge {
  position: relative;

  &[data-badge],
  &:not([data-badge]),
  &[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;
      transform: translate(-.2rem, -.8rem);
    }
  }
  &[data-badge] {
    &::after {
      font-size: 1.1rem;
      height: 1.8rem;
      line-height: 1.2rem;
      min-width: 1.8rem;
      padding: .2rem .4rem;
      text-align: center;
      white-space: nowrap;
    }
  }
  &:not([data-badge]),
  &[data-badge=''] {
    &::after {
      height: .8rem;
      min-width: .8rem;
      padding: 0;
      width: .8rem;
    }
  }
}