summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/assets/badge.module.scss
blob: a570ecc4556bd245bbb85a0a8e09aabdd0a4f987 (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
@layer mantine {
  .root {
    background-color: transparentize($color-brand-6, 0.8);

    &[data-variant="warning"] {
      color: lighten($color-warning-2, 1);
      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);
    }

    @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);
      }
    }
  }
}