summaryrefslogtreecommitdiff
path: root/scss/notifpopups.scss
blob: 18d4eda6fe69d993d2a0eaf2a35081cef8a04a66 (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
@use "sass:color";
@use "scheme";
@use "lib";
@use "font";

@mixin popup($colour, $alpha) {
    @include lib.border($colour, $alpha);

    border-right: none;

    .separator {
        background-color: $colour;
    }

    .image {
        @include lib.border($colour, 0.05);
    }
}

.notifpopups {
    min-width: lib.s(425);
    padding-left: lib.s(10); // So notifications can overshoot for init animation

    // For shadow
    & > :last-child .wrapper {
        padding-bottom: lib.s(15);
    }

    .notification {
        .wrapper {
            padding-top: lib.s(10);
            padding-left: lib.s(15); // For shadow
        }

        .inner {
            @include lib.rounded(8, $tr: 0, $br: 0);
            @include lib.shadow;

            &.low {
                @include popup(scheme.$overlay0, 0.3);
            }

            &.normal {
                @include popup(scheme.$lavender, 0.3);
            }

            &.critical {
                @include popup(scheme.$red, 0.8);
            }
        }
    }
}