-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdefault.scss
76 lines (58 loc) · 1.46 KB
/
default.scss
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
//! This file include default toast styles.
@mixin transition ($options...) {
-webkit-transition: $options;
-moz-transition: $options;
-o-transition: $options;
transition: $options;
}
$messagesAlpha: .9;
$animationsTime: .3s;
.toast {
position: fixed;
right: 0;
bottom: 0;
z-index: 10000;
max-width: 100%;
opacity: 0;
transform: translate(75%, 0);
pointer-events: none;
@include transition(
all $animationsTime ease,
transform $animationsTime cubic-bezier(0.645, 0.045, 0.355, 1)
);
&.displayed {
opacity: 1;
transform: translate(0, 0);
}
&.deleted {
// same as original
}
> .body {
position: relative;
font-size: initial;
margin: 0 1em 1em 1em;
padding: .5em;
word-wrap: break-word;
border-radius: 3px;
background: rgba(255, 255, 255, $messagesAlpha);
pointer-events: all;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
&.info {
background: rgba(#FFF5C3, $messagesAlpha);
}
&.warning {
background: rgba(#FFB763, $messagesAlpha);
> .icon {
color: white;
}
}
&.error {
color: white;
text-shadow: 0 0 1px black;
background: rgba(#FF5656, $messagesAlpha);
}
&.done {
background: rgba(#93FF9D, $messagesAlpha);
}
}
}