summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/assets/badge.module.scss
blob: 5b31be59eb467c7e9c7bc192f189249f5667554a (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@layer mantine {
  .root {
    background-color: transparentize($color-brand-6, 0.8);

    &[data-variant="warning"] {
      color: lighten($color-warning-2, 0.8);
      background-color: transparentize($color-warning-6, 0.8);
    }

    &[data-variant="highlight"] {
      color: lighten($color-highlight-2, 1);
      background-color: transparentize($color-highlight-5, 0.8);
    }

    &[data-variant="disabled"] {
      color: lighten($color-disabled-0, 1);
      background-color: transparentize($color-disabled-7, 0.8);
    }

    &[data-variant="light"] {
      color: var(--mantine-color-dark-0);
      background-color: transparentize($color-disabled-9, 0.8);
    }

    @include light {
      color: $color-brand-6;
      background-color: transparentize($color-brand-3, 0.8);

      &[data-variant="warning"] {
        color: darken($color-warning-7, 1);
        background-color: transparentize($color-warning-6, 0.8);
      }

      &[data-variant="disabled"] {
        color: darken($color-disabled-6, 1);
        background-color: transparentize($color-disabled-4, 0.8);
      }

      &[data-variant="highlight"] {
        color: darken($color-highlight-6, 1);
        background-color: transparentize($color-highlight-5, 0.8);
      }

      &[data-variant="light"] {
        color: var(--mantine-color-black);
        background-color: var(--mantine-color-gray-5);
      }
    }
  }

  .label {
    overflow: visible;
  }
}