blob: 5a032c895ab3752bd866404cb81ee57f4f1eeecb (
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
|
@import "../colors.scss";
.notifications {
position: absolute;
z-index: 50;
bottom: 50px;
left: 30px;
.notification {
width: 250px;
margin: 10px 0;
padding: 10px;
cursor: pointer;
transition: all 1s ease;
transform: translateX(-300px);
color: $color-green-light;
border-left: 5px solid $color-green-dark;
background-color: $color-green;
.notification-title {
font-size: 0.9em;
margin: 0;
}
.notification-description {
font-size: 0.8em;
overflow: hidden;
margin: 10px 0;
white-space: nowrap;
text-overflow: ellipsis;
color: $color-primary-4;
}
&.notification-open {
transform: translateX(0);
}
&.notification-closed {
transform: translateY(-50px);
opacity: 0;
}
&.notification-blue {
color: $color-blue-light;
border-left: 5px solid $color-blue-dark;
background-color: $color-blue;
}
&.notification-red {
color: $color-red-light;
border-left: 5px solid $color-red-dark;
background-color: $color-red;
}
}
}
|