-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
NotifyMe.scss
90 lines (77 loc) · 1.75 KB
/
NotifyMe.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* Notification Component Styles */
.notification-container {
margin-right: 15px;
}
/* Notifications */
.notification {
display: inline-block;
position: relative;
padding: 6px;
background: #282828;
border-radius: 45px;
font-size: 1.3em;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
cursor: pointer;
}
.notification::before,
.notification::after {
color: #fff;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.notification::before {
display: block;
font-family: "FontAwesome";
transform-origin: top center;
}
.notification::after {
font-family: Arial;
font-size: 12px;
font-weight: 700;
position: absolute;
top: -9px;
right: -15px;
padding: 5px 8px;
line-height: 100%;
border: 2px #fff solid;
border-radius: 60px;
background: #db3434;
opacity: 0;
content: attr(data-count);
opacity: 0;
transform: scale(0.5);
transition: transform, opacity;
transition-duration: 0.3s;
transition-timing-function: ease-out;
}
.notification.notify::before {
animation: ring 1.5s ease;
}
.notification.show-count::after {
transform: scale(1);
opacity: 1;
}
.notification-info-panel {
max-height: 300px;
overflow-y: auto;
padding: 0;
}
.notification-info-panel .notification-message {
list-style: none;
padding: 4px;
background-color: #ebebeb;
margin-bottom: 3px;
border: 1px solid #ececec;
border-radius: 8px;
}
.notification-info-panel .notification-message .timestamp {
margin-bottom: 2px;
font-size: 13px;
font-weight: 600;
}
.notification-info-panel .notification-message .content {
font-size: 17px;
}
.notification-info-panel .notification-message.unread {
background-color: #17A2B8;
color: #FFFFFF;
}