Notifications Bell
by Gustavo Espriella
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<div class="dropdown" style="float: right; padding: 13px">
<a href="#" onclick="return false;" role="button" data-toggle="dropdown" id="dropdownMenu1" data-target="#" style="float: left" aria-expanded="true">
<i class="fa fa-bell-o" style="font-size: 20px; float: left; color: black">
</i>
</a>
<span class="badge badge-danger">6</span>
<ul class="dropdown-menu dropdown-menu-left pull-right" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation">
<a href="#" class="dropdown-menu-header">Notifications</a>
</li>
<ul class="timeline timeline-icons timeline-sm" style="margin:10px;width:210px">
<li>
<p>
Your “Volume Trendline” PDF is ready <a href="">here</a>
<span class="timeline-icon"><i class="fa fa-file-pdf-o" style="color:red"></i></span>
<span class="timeline-date">Dec 10, 22:00</span>
</p>
</li>
<li>
<p>
Your “Marketplace Report” PDF is ready <a href="">here</a>
<span class="timeline-icon"><i class="fa fa-file-pdf-o" style="color:red"></i></span>
<span class="timeline-date">Dec 6, 10:17</span>
</p>
...
CSS
/* -----------------------------------------
Timeline
----------------------------------------- */
.timeline {
list-style: none;
padding-left: 0;
position: relative;
}
.timeline:after {
content: "";
height: auto;
width: 1px;
background: #e3e3e3;
position: absolute;
top: 5px;
left: 30px;
bottom: 25px;
}
.timeline.timeline-sm:after {
left: 12px;
}
.timeline li {
position: relative;
padding-left: 70px;
margin-bottom: 20px;
}
.timeline li:after {
content: "";
width: 12px;
height: 12px;
border-radius: 50%;
background: #e3e3e3;
position: absolute;
left: 24px;
top: 5px;
}
.timeline li .timeline-date {
display: inline-block;
width: 100%;
color: #a6a6a6;
font-style: italic;
font-size: 13px;
}
.timeline.timeline-icons li {
padding-top: 7px;
}
.timeline.timeline-icons li:after {
width: 32px;
height: 32px;
background: #fff;
border: 1px solid #e3e3e3;
left: 14px;
top: 0;
z-index: 11;
}
.timeline.timeline-icons li .timeline-icon {
position: absolute;
left: 23.5px;
top: 7px;
z-index: 12;
}
.timeline.timeline-icons li .timeline-icon [class*=glyphicon] {
top: -1px !important;
}
.timeline.timeline-icons.timeline-sm li {
padding-left: 40px;
margin-bottom: 10px;
}
.timeline.timeline-icons.timeline-sm li:after {
left: -5px;
}
.timeline.timeline-icons.timeline-sm li .timeline-icon {
left: 4.5px;
}
.timeline.timeline-advanced li {
padding-top: 0;
}
.timeline.timeline-advanced li:after {
background: #fff;
border: 1px solid #29b6d8;
}
.timeline.timeline-advanced li:before {
content: "";
width: 52px;
height: 52px;
border: 10px solid #fff;
position: absolute;
left: 4px;
top: -10px;
border-radius: 50%;
z-index: 12;
}
.timeline.timeline-advanced li .timeline-icon {
color: #29b6d8;
}
.timeline.timeline-advanced li .timeline-date {
width: 75px;
position: absolute;
right: 5px;
top: 3px;
text-align: right;
}
.timeline.timeline-advanced li .timeline-title {
font-size:...