<div class="container">
<div class="page-header text-center">
<h1 id="timeline">Timeline 2.1</h1>
</div>
<ul class="timeline">
<li>
<div class="timeline-badge primary"><a><i class="glyphicon glyphicon-record" rel="tooltip" title="11 hours ago via Twitter" id=""></i></a></div>
<div class="timeline-panel">
<div class="timeline-heading">
<img class="img-responsive" src="http://lorempixel.com/1600/500/sports/2" />
</div>
<div class="timeline-body">
<p>Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis.</p>
</div>
<div class="timeline-footer">
<a class="icon"><span class="ion-android-open"></span></a>
<a class="icon" rel="modalShare"><span class="ion-android-share-alt"></span></a>
<a class="pull-right">Continuar Lendo</a>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-badge primary"><a><i class="glyphicon glyphicon-record invert" rel="tooltip" title="11 hours ago via Twitter" id=""></i></a></div>
<div class="timeline-panel">
<div class="timeline-heading">
<img class="img-responsive" src="http://lorempixel.com/1600/500/sports/2" />
</div>
<div class="timeline-body">
<p>Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis.</p>
</div>
<div class="timeline-footer">
<a><i class="glyphicon glyphicon-thumbs-up"></i></a>
<a><i class="glyphicon glyphicon-share"></i></a>
<a class="pull-right">Continuar Lendo</a>
</div>
</div>
</li>
<li>
<div class="timeline-badge primary"><a><i class="glyphicon glyphicon-record" rel="tooltip" title="11 hours ago via Twitter" id=""></i></a></div>
<div class="timeline-panel">
<div class="timeline-heading">
<img class="img-responsive" src="http://lorempixel.com/1600/500/sports/2" />
</div>
<div class="timeline-body">
<p>Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis.</p>
</div>
<div class="timeline-footer">
<a><i class="glyphicon glyphicon-thumbs-up"></i></a>
<a><i class="glyphicon glyphicon-share"></i></a>
<a class="pull-right">Continuar Lendo</a>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-badge primary"><a><i class="glyphicon glyphicon-record invert" rel="tooltip" title="11 hours ago via Twitter" id=""></i></a></div>
<div class="timeline-panel">
<div class="timeline-body">
<p>Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis.</p>
</div>
<div class="timeline-footer">
<a><i class="glyphicon glyphicon-thumbs-up"></i></a>
<a><i class="glyphicon glyphicon-share"></i></a>
<a class="pull-right">Continuar Lendo</a>
</div>
</div>
</li>
<li>
<div class="timeline-badge primary"><a><i class="glyphicon glyphicon-record" rel="tooltip" title="11 hours ago via Twitter" id=""></i></a></div>
<div class="timeline-panel">
<div class="timeline-heading">
<img class="img-responsive" src="http://lorempixel.com/1600/500/sports/2" />
</div>
<div class="timeline-body">
<p>Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis.</p>
</div>
<div class="timeline-footer">
<a><i class="glyphicon glyphicon-thumbs-up"></i></a>
<a><i class="glyphicon glyphicon-share"></i></a>
<a class="pull-right">Continuar Lendo</a>
</div>
</div>
</li>
<li class="timeline-inverted">
<div class="timeline-badge primary"><a><i class="glyphicon glyphicon-record invert" rel="tooltip" title="11 hours ago via Twitter" id=""></i></a></div>
<div class="timeline-panel">
<div class="timeline-heading">
<img class="img-responsive" src="http://lorempixel.com/1600/500/sports/2" />
</div>
<div class="timeline-body">
<p>Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim. Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis.</p>
</div>
<div class="timeline-footer primary">
<a><i class="glyphicon glyphicon-thumbs-up"></i></a>
<a><i class="glyphicon glyphicon-share"></i></a>
<a class="pull-right">Continuar Lendo</a>
</div>
</div>
</li>
<li>
<div class="timeline-badge primary"><a><i class="glyphicon glyphicon-record invert" rel="tooltip" title="11 hours ago via Twitter" id=""></i></a></div>
<div class="timeline-panel">
<div class="timeline-body">
<p><b>All the credits go to <a href="https://bootsnipp.com/rafamaciel">Rafamaciel</a></b></p>
<p>I only make it responsive and remove the empty spaces to be more like Facebook timeline!</p>
</div>
<div class="timeline-footer primary">
<a><i class="glyphicon glyphicon-thumbs-up"></i></a>
<a><i class="glyphicon glyphicon-share"></i></a>
<a class="pull-right">Continuar Lendo</a>
</div>
</div>
</li>
<li class="clearfix" style="float: none;"></li>
</ul>
</div>
<!-- ==================== -->
<div id="myModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Confirmation</h4>
</div>
<div class="modal-body">
<p>Do you want to save changes you made to document before closing?</p>
<p class="text-warning"><small>If you don't save, your changes will be lost.</small></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
body {
background-color: #efefef;
}
.container {
max-width: 65em;
}
.timeline {
list-style: none;
padding: 20px 0 20px;
position: relative;
}
.timeline:before {
top: 0;
bottom: 0;
position: absolute;
content: " ";
width: 3px;
background-color: #d5d5d5;
left: 50%;
margin-left: -1.5px;
}
.timeline > li {
margin-bottom: 30px;
position: relative;
width: 50%;
float: left;
clear: left;
}
.timeline > li:before,
.timeline > li:after {
content: " ";
display: table;
}
.timeline > li:after {
clear: both;
}
.timeline > li:before,
.timeline > li:after {
content: " ";
display: table;
}
.timeline > li:after {
clear: both;
}
.timeline > li > .timeline-panel {
width: 94%;
float: left;
border: 1px solid #ddd;
border-radius: 3px;
/*padding: 20px;*/
background: #fff;
position: relative;
-webkit-box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.05);
box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.05);
}
.timeline > li > .timeline-panel:before {
position: absolute;
top: 26px;
right: -13px;
display: inline-block;
border-top: 12px solid transparent;
border-left: 12px solid #ddd;
border-right: 0 solid #ddd;
border-bottom: 12px solid transparent;
content: " ";
}
.timeline > li > .timeline-panel:after {
position: absolute;
top: 27px;
right: -11px;
display: inline-block;
border-top: 11px solid transparent;
border-left: 11px solid #fff;
border-right: 0 solid #fff;
border-bottom: 11px solid transparent;
content: " ";
}
.timeline > li > .timeline-badge {
color: #fff;
width: 24px;
height: 24px;
line-height: 50px;
font-size: 1.4em;
text-align: center;
position: absolute;
top: 19px;
right: -12px;
/*background-color: #999999;*/
z-index: 100;
/*
border-top-right-radius: 50%;
border-top-left-radius: 50%;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
*/
}
.timeline > li.timeline-inverted > .timeline-panel {
float: right;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
border-left-width: 0;
border-right-width: 12px;
left: -13px;
right: auto;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
border-left-width: 0;
border-right-width: 11px;
left: -11px;
right: auto;
}
.timeline-badge > a {
color: #b5b5b5 !important;
font-size: 1.2em;
line-height: 1.2em;
}
.timeline-badge a:hover {
color: #000 !important;
}
.timeline-badge > a > i {
background-color: #efefef;
}
.timeline-title {
margin-top: 0;
color: inherit;
}
.timeline-heading{
display: none;
}
.timeline-body > p,
.timeline-body > ul {
padding:20px;
margin-bottom: 0;
}
.timeline-body > p + p {
margin-top: 5px;
}
.timeline-footer{
padding:10px 15px;
background-color:#f4f4f4;
}
.timeline-footer > a {
cursor: pointer;
text-decoration: none;
}
.timeline-footer .icon {
font-size: 20px;
line-height: 20px;
margin-right: 6px;
}
.timeline-footer .icon:last-child {
margin-right: 0;
}
.tooltip{
position:absolute;
z-index:1020;
display:block;
visibility:visible;
padding:5px;
font-size:11px;
opacity:0;
filter:alpha(opacity=0);
}
.tooltip.in{
/*opacity:0;
filter:alpha(opacity=80);*/
}
.tooltip.top{
margin-top:-2px;
}
.tooltip.right{
margin-left:2px;
}
.tooltip.bottom{
margin-top:2px;
}
.tooltip.left{
margin-left:-2px;
}
.tooltip.top .tooltip-arrow{
bottom:0;
left:0;
margin-left:0;
border-left:0 solid transparent;
border-right:5px solid transparent;
border-top:0 solid #000;
}
.tooltip.left .tooltip-arrow{
bottom:0;
left:0;
margin-left:0;
border-left:0 solid transparent;
border-right:5px solid transparent;
border-top:0 solid #000;
}
.tooltip.bottom .tooltip-arrow{
bottom:0;
left:0;
margin-left:0;
border-left:0 solid transparent;
border-right:5px solid transparent;
border-top:0 solid #000;
}
.tooltip.right .tooltip-arrow{
bottom:0;
left:0;
margin-left:0;
border-left:0 solid transparent;
border-right:5px solid transparent;
border-top:0 solid #000;
}
.tooltip-inner{
width:200px;
padding:3px 8px;
color:#fff;
text-align:center;
text-decoration:none;
background-color:#313131;
-webkit-border-radius:0px;
-moz-border-radius:0px;
border-radius:0px;
}
.tooltip-arrow{
position:absolute;
width:0;
height:0;
}
.timeline > li.timeline-inverted{
float: right;
clear: right;
margin-top: 30px;
margin-bottom: 30px;
}
.timeline > li:nth-child(2){
margin-top: 60px;
}
.timeline > li.timeline-inverted > .timeline-badge{
left: -12px;
}
@media (max-width: 767px) {
ul.timeline:before {
left: 20px;
}
ul.timeline > li {
margin-bottom: 25px;
position: relative;
width:100%;
float: left;
clear: left;
}
ul.timeline > li > .timeline-panel {
width: calc(100% - 46px);
width: -moz-calc(100% - 46px);
width: -webkit-calc(100% - 46px);
}
ul.timeline > li > .timeline-badge {
left: 8px;
margin-left: 0;
top: 18px;
}
ul.timeline > li > .timeline-panel {
float: right;
}
ul.timeline > li > .timeline-panel:before {
border-left-width: 0;
border-right-width: 13px;
left: -13px;
right: auto;
}
ul.timeline > li > .timeline-panel:after {
border-left-width: 0;
border-right-width: 11px;
left: -11px;
right: auto;
}
.timeline > li.timeline-inverted{
float: left;
clear: left;
margin-top: 0px;
margin-bottom: 25px;
}
.timeline > li.timeline-inverted > .timeline-badge{
left: 8px;
}
}
View Compiled
$(document).ready(function(){
var my_posts = $("[rel=tooltip]");
var size = $(window).width();
for(i=0;i<my_posts.length;i++){
the_post = $(my_posts[i]);
if(the_post.hasClass('invert') && size >=767 ){
the_post.tooltip({ placement: 'left'});
the_post.css("cursor","pointer");
}else{
the_post.tooltip({ placement: 'rigth'});
the_post.css("cursor","pointer");
}
}
});
$(function(){
var btn_share = $("[rel=modalShare]");
btn_share.click(function(e){
e.preventDefault();
$("#myModal").modal('show');
});
});