-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdNotify.css
More file actions
82 lines (73 loc) · 2.38 KB
/
dNotify.css
File metadata and controls
82 lines (73 loc) · 2.38 KB
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
/**************************************************
* dNotify - A simple user notification system *
* based on jQuery and CSS *
* https://github.com/dmarcato/dNotify *
* *
* Version 1.0 (6 November 2011) *
* *
* Copyright(c) 2011, Dario Marcato *
* Web: http://about.me/dariomarcato *
* Mail: dm0388@gmail.com *
***************************************************/
#dNotify {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: auto;
text-align: center;
vertical-align: center;
}
#dNotify .msg {
position: relative;
width: 100%;
display: none;
border-bottom: 1px solid;
padding-top: 9px;
padding-bottom: 9px;
cursor: pointer;
box-shadow: 0 1px 5px #333;
-moz-box-shadow: 0 1px 5px #333;
-webkit-box-shadow: 0 1px 5px #333;
}
#dNotify .msg img.icon {
border: 0;
vertical-align: middle;
height: 22px;
}
#dNotify .msg img.icon.left {
float: left;
margin-left: 15px;
}
#dNotify .msg img.icon.right {
float: right;
margin-right: 15px;
}
#dNotify .msg.good {
background-color: #9f9; /* Fallback for IE */
background: -webkit-gradient(linear, left top, left bottom, from(rgba(221,255,221,0.8)), to(rgba(153,255,153, 0.8)));
background: -moz-linear-gradient(top, rgba(221,255,221,0.8), rgba(153,255,153, 0.8));
color: #3a3;
border-color: #3a3;
}
#dNotify .msg.bad {
background-color: #f99; /* Fallback for IE */
background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,221,221,0.8)), to(rgba(255,153,153, 0.8)));
background: -moz-linear-gradient(top, rgba(255,221,221,0.8), rgba(255,153,153, 0.8));
color: #a33;
border-color: #a33;
}
#dNotify .msg.warn {
background-color: #ff9; /* Fallback for IE */
background: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,221,0.8)), to(rgba(255,255,153, 0.8)));
background: -moz-linear-gradient(top, rgba(255,255,221,0.8), rgba(255,255,153, 0.8));
color: #aa3;
border-color: #aa3;
}
#dNotify .msg.normal {
background-color: #99f; /* Fallback for IE */
background: -webkit-gradient(linear, left top, left bottom, from(rgba(221,221,255,0.8)), to(rgba(153,153,255, 0.8)));
background: -moz-linear-gradient(top, rgba(221,221,255,0.8), rgba(153,153,255, 0.8));
color: #33a;
border-color: #33a;
}