aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/include/_badges.scss
blob: 7efd2fb8166d32a8f42f49ec7a37bbf1fcfe15bf (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@use '_variables' as *;
@use '_mixins' as *;

@mixin peertube-badge {
  display: inline-block;
  border-radius: .25rem;
  padding: .25em .4em;
  font-size: 75%;
  font-weight: $font-semibold;
  line-height: 1.1;

  &.badge-fs-normal {
    font-size: 100%;
  }

  &.badge-primary {
    color: pvar(--mainBackgroundColor);
    background-color: pvar(--mainColor);
  }

  &.badge-secondary {
    color: pvar(--mainBackgroundColor);
    background-color: pvar(--greyForegroundColor);
    opacity: 0.7;
  }

  &.badge-banned,
  &.badge-danger,
  &.badge-red {
    background-color: #ffcdd2;
    color: #c63737;
  }

  &.badge-banned {
    text-decoration: line-through;
  }

  &.badge-yellow,
  &.badge-warning {
    background-color: #feedaf;
    color: #8a5340;
  }

  &.badge-brown {
    background-color: #ffd8b2;
    color: #805b36;
  }

  &.badge-green,
  &.badge-success {
    background-color: #c8e6c9;
    color: #256029;
  }

  &.badge-blue,
  &.badge-info {
    background-color: #b3e5fc;
    color: #23547b;
  }

  &.badge-purple {
    background-color: #eccfff;
    color: #694382;
  }
}