aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/toast/toast.component.css
blob: 82e2ff3700ce91cc9cd17a1682914082f4d19b2f (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
:host {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideDown {
    from {transform: translateY(-90px);}
    to {transform: translateY(0);}
}

.toast {
    /*transform: translateY(-90px);*/
    animation: slideDown .5s ease-in-out;
    transition: transform .5s;
    align-self: center;
    z-index: 4;
    position: absolute;
    top: 15px;
    display: flex;
    flex-direction: row;
    padding: 3px 15px;
    background-color: #3a3a3a;
    border-radius: 100000px;
    gap: 10px;
    align-items: center;

    button {
        aspect-ratio: 1/1;
        margin-right: -11px;
        padding: 8px;
        display: flex;
        align-items: center;
        background-color: transparent;
    }

    button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.toast.hide:not(:has(:hover)) {
    transform: translateY(-90px);
}

.toast.warning {
    background-color: #ffc500;
    color: black;

    button {
        color: black;
    }
}

.toast.error {
    background-color: #d81a1a;
}