๐Ÿ“ฆ 0372hoanghoccode / Do-An-Web-1

๐Ÿ“„ toast.css ยท 84 lines
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84/* Css toast message */
.toast {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 5px;
    padding: 20px 0;
    min-width: 400px;
    max-width: 450px;
    border-left: 4px solid;
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.08);
}

.toast + .toast{
    margin-top: 20px;
}
#toast {
    position: fixed;
    top: 50px;
    left: 20px;
    z-index: 100;
}

.toast__private {
    display: flex;
}

.toast__icon {
    font-size: 24px;
}

.toast__close {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: absolute;
    top: 1px;
    right: 1px;
}

.toast__icon,
.toast__close {
    padding: 0 16px;
    line-height: 52px;
}

.toast__body {
    flex-grow: 1;
}

.toast__msg {
    font-size: 14px;
    color: #888;
    margin-top: 6px;
}

.toast--success {
    border-color: #28a785;
}

.toast--success .toast__icon {
    color: #28a785;
}

.toast--warning {
    border-color: #ffc107;
}

.toast--warning .toast__icon {
    color: #ffc107;
}

.toast__background {
    height: 4px;
    position: absolute;
    bottom: 0;
}


@media (max-width: 576px){
    .toast {
       width: 300px;
    }
}