summaryrefslogtreecommitdiff
path: root/scss/popdowns/notifications.scss
blob: 8b35fc2fcf1c910cbae7abc4db0a8ab64ae36d64 (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
55
56
57
58
@use "sass:color";
@use "../scheme";
@use "../lib";
@use "../font";

@mixin popup($accent) {
    .separator {
        background-color: $accent;
    }

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

.notifications {
    @include lib.popdown-window(scheme.$mauve);

    min-width: lib.s(400);
    min-height: lib.s(600);

    .notification {
        .wrapper {
            padding-bottom: lib.s(10);
        }

        .inner {
            background-color: color.mix(scheme.$base, scheme.$surface0, 70%);

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

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

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

        .actions > * {
            background-color: scheme.$surface0;

            &:hover,
            &:focus {
                background-color: scheme.$surface1;
            }

            &:active {
                background-color: scheme.$surface2;
            }
        }
    }
}