<div class="container">
<ul class="timeline">
<li class="event">
<div class="left-arrow"></div>
<div class="time">11:34 AM <span class="glyphicon glyphicon-time"></span></div>
<h3>Title</h3>
<div class="description"><p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p></div>
</li>
<li class="event">
<div class="left-arrow"></div>
<div class="time">2 days ago <span class="glyphicon glyphicon-time"></span></div>
<h3>Title</h3>
<div class="description"><p>Description</p></div>
</li>
</ul>
</div>
$bgColor: #f0f0f0;
$timelineColor: #0077bb;
// Generic body stuff
body { background: $bgColor; font-family: sans-serif; padding-top: 30px; }
ul.timeline {
position: relative;
list-style-type: none;
padding-left: 180px;
&:before {
position: absolute;
display: block;
left: 136px;
width: 8px;
height: 100%;
border-radius: 4px;
background-color: $timelineColor;
content: ' ';
}
.event {
position: relative;
padding: 16px;
background: white;
border-radius: 2px;
box-shadow: 0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);
padding: 16px;
margin-bottom: 30px;
&:before {
display: block;
position: absolute;
top: 30px;
left: -55px;
width: 30px;
height: 30px;
border: 6px solid $timelineColor;
border-radius: 50%;
background-color: white;
box-shadow: 0 0 4px -1px rgba(0,0,0,0.6);
content: ' ';
}
}
h3 {
font-size: 1.5em;
margin-top: 0;
margin-bottom: 10px;
}
.time {
position: absolute;
display: block;
width: 120px;
top: 35px;
left: -179px;
font-size: 0.9em;
text-align: right;
font-weight: 600;
text-transform: uppercase;
>.glyphicon-time {
top: 2px;
}
}
.left-arrow {
&:before {
position: absolute;
top: 30px;
left: -15px;
display: inline-block;
border-top: 15px solid transparent;
border-right: 15px solid #ddd;
border-left: 0 solid #ddd;
border-bottom: 15px solid transparent;
content: ' ';
}
&:after {
position: absolute;
top: 30px;
left: -14px;
display: inline-block;
border-top: 15px solid transparent;
border-right: 15px solid #fff;
border-left: 0 solid #fff;
border-bottom: 15px solid transparent;
content: ' ';
}
}
}
View Compiled
This Pen doesn't use any external JavaScript resources.