forked from visionmedia/uikit
/
notification.css
102 lines (81 loc) · 1.31 KB
/
notification.css
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#notifications {
position: fixed;
top: 10px;
right: 15px;
}
#notifications li {
margin-bottom: 5px;
list-style: none;
}
.notification {
position: relative;
max-width: 600px;
min-width: 250px;
border: 1px solid #eee;
background: white;
z-index: 100;
}
.notification .content {
padding: 15px 20px;
}
.notification h1 {
margin: 0 0 5px 0;
font-size: 16px;
font-weight: normal;
}
.notification p {
margin: 0;
padding: 0;
font-size: .9em;
}
.notification .close {
position: absolute;
top: 5px;
right: 10px;
text-decoration: none;
color: #888;
display: none;
}
.notification.closable .close {
display: block;
}
.notification .close:hover {
color: black;
}
.notification .close:active {
margin-top: 1px;
}
/* close */
.notification .close {
position: absolute;
top: 3px;
right: 10px;
text-decoration: none;
color: #888;
font-size: 16px;
font-weight: bold;
display: none;
}
/* slide */
.notification.slide {
transition: opacity 300ms, top 300ms;
}
.notification.slide.hide {
opacity: 0;
top: -500px;
}
/* fade */
.notification.fade {
transition: opacity 300ms;
}
.notification.fade.hide {
opacity: 0;
}
/* scale */
.notification.scale {
transition: transform 300ms;
transform: scale(1);
}
.notification.scale.hide {
transform: scale(0);
}