JSFiddle - React, Tailwind, and code Playground
by Laurie
HTML
<div class="comments">
<div class="comment">
<div class="comment-body">
<div class="title">Approvals</div>
<div class="text">
<ul>
<li>Designgation Certification SOP</li>
<li>Approval Form</li>
</ul>
</div>
</div>
</div>
<div class="comment">
<div class="comment-body">
<div class="title">Materials</div>
<div class="text"><ul>
<li>Designgation Certification SOP</li>
<li>Approval Form</li>
</ul></div>
</div>
</div>
<div class="comment">
<div class="comment-body">
<div class="title">Exams</div>
<div class="text"><ul>
<li>Designgation Certification SOP</li>
<li>Approval Form</li>
</ul></div>
</div>
</div>
<div class="comment">
<div class="comment-body">
<div class="title">Bonuses</div>
<div class="text"><ul>
<li>Designgation Certification SOP</li>
<li>Approval Form</li>
</ul></div>
</div>
</div>
</div>
CSS
div {
display: block;
}
body {
background: #f3eee9;
}
.comment {
overflow: hidden;
padding: 0 0 1em;
margin: 0 0 1em;
*zoom: 1;
float:left;
}
.comment-body {
overflow: hidden;
}
.comment .text {
padding: 10px;
border: 1px solid #e5e5e5;
border-radius: 5px;
background: #fff;
}
/* Decoration */
.comments, .comment {
position: relative;
}
.comments:before, .comment:before, .comment .text:before {
content:"";
position: absolute;
top: 0;
left: 65px;
}
.comments:before {
width: 3px;
top: -20px;
bottom: -20px;
background: rgba(0, 0, 0, 0.1);
}
.comment:before {
border-radius: 50%;
margin: 0.15em;
font-size: 3em;
background:#1E90FF;
padding: 0.25em 0.25em;
border:5px #ffffff solid;
color:#ffffff;
font-size:5em;
box-shadow:0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}
.comment:hover:before {
background: orange;
}