-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesign35.html
More file actions
143 lines (137 loc) · 4.68 KB
/
design35.html
File metadata and controls
143 lines (137 loc) · 4.68 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
$(".notification_icon .fa-bell").click(function(){
$(".dropdown").toggleClass("active");
});
});
</script>
<style>
@import "https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css";
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:sans-serif;
}
body{
background:#914444;
}
.notification_wrap{
width:500px;
margin:120px auto 0;
}
.notification_wrap .notification_icon{
position:relative;
width:50px;
height:50px;
font-size:32px;
margin:0 auto;
text-align:center;
color:#605dff;
}
.notification_wrap .notification_icon .fa-bell{
cursor:pointer;
}
.notification_wrap .dropdown{
width:350px;
height:auto;
background:#fff;
border-radius:5px;
box-shadow:2px 2px 3px rgba(0,0,0,0.125);
margin:15px auto 0;
padding:15px;
position: relative;
display:none;
}
.notification_wrap .dropdown .notify_item{
display:flex;
align-items: center;
padding:10px 0;
border-bottom:1px solid #dbdaff;
}
.notification_wrap .dropdown .notify_item:last-child{
border-bottom:0px;
}
.notification_wrap .dropdown .notify_item .notify_img
{
margin-right:15px;
}
.notification_wrap .dropdown .notify_item .notify_info p span{
color:#605dff;
}
.notification_wrap .dropdown .notify_item .notify_info .notify_time{
color:#c5c5a6;
font-size:12px;
}
.notification_wrap .dropdown:before{
content:"";
position:absolute;
top:-30px;
left:50%;
transform:translateX(-50%);
border:15px solid;
border-color:transparent transparent #fff transparent;
}
.notification_wrap .dropdown.active{
display:block;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="notification_wrap">
<div class="notification_icon">
<i class="fa fa-bell"></i>
</div>
<div class="dropdown">
<div class="notify_item">
<div class="notify_img">
<img src="man.jpg" alt="_profile_pic" style="width:50px;">
</div>
<div class="notify_info">
<p>Ben commented on your <span>Timeline Share</span></p>
<span class="notify_time">10 minutes ago</span>
</div>
</div>
<div class="notify_item">
<div class="notify_img">
<img src="cast4.jpg" alt="_profile_pic" style="width:50px;">
</div>
<div class="notify_info">
<p>Alex commented on your <span>Profile Pic</span></p>
<span class="notify_time">10 minutes ago</span>
</div>
</div>
<div class="notify_item">
<div class="notify_img">
<img src="cast1.jpg" alt="_profile_pic" style="width:50px;">
</div>
<div class="notify_info">
<p>Merry commented on your <span>Timeline Share</span></p>
<span class="notify_time">10 minutes ago</span>
</div>
</div>
<div class="notify_item">
<div class="notify_img">
<img src="cast3.jpg" alt="_profile_pic" style="width:50px;">
</div>
<div class="notify_info">
<p>Jonny commented on your <span>Cover Picture</span></p>
<span class="notify_time">10 minutes ago</span>
</div>
</div>
</div>
</div>
</div>
</body>
</html>