JSFiddle - React, Tailwind, and code Playground
Google Plus Panels
by Jennifer Perrin
HTML
<script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.0/css/bootstrap.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-offset-1 col-sm-5">
<div class="panel panel-default panel-google-plus">
<div class="panel-google-plus-tags">
<ul>
<li><i class="fa fa-tag"></i> Millennials</li>
</ul>
</div>
<div class="panel-heading">
<h3>Robert McIntosh</h3>
<h5><span>Shared publicly</span> - <span>Jun 27, 2014</span> </h5>
</div>
<div class="panel-body">
<p>Do people born in 2000 get to choose if they are Generation Y or Generation Z? How do you decide what generation you want to belong to?</p>
</div>
<div class="panel-footer">
<button type="button" class="btn btn-default">
<i class="fa fa-check"></i>
</button>
<button type="button" class="btn btn-default">
<i class="fa fa-pencil"></i>
</button>
<button type="button" class="btn btn-default">
<i class="fa fa-times"></i>
</button>
</div>
</div>
</div>
</div>
</div>
CSS
@import url(http://fonts.googleapis.com/css?family=Roboto:400,700);
body {
background-color: rgb(229, 229, 229);
padding-top: 60px;
padding-bottom: 30px;
}
.panel-google-plus {
position: relative;
border-radius: 0px;
border: 1px solid rgb(216, 216, 216);
font-family: 'Roboto', sans-serif;
}
.panel-google-plus > .dropdown {
position: absolute;
top: 5px;
right: 15px;
}
.panel-google-plus > .dropdown > span > span {
font-size: 10px;
}
.panel-google-plus > .dropdown > .dropdown-menu {
left: initial;
right: 0px;
border-radius: 2px;
}
.panel-google-plus > .panel-google-plus-tags {
position: absolute;
top: 10px;
right: -3px;
}
.panel-google-plus > .panel-google-plus-tags > ul {
list-style: none;
padding: 0px;
margin: 0px;
}
.panel-google-plus > .panel-google-plus-tags > ul:hover {
box-shadow: 0px 0px 3px rgb(0, 0, 0);
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.25);
}
.panel-google-plus > .panel-google-plus-tags > ul > li {
display: block;
right: 0px;
width: 0px;
padding: 5px 0px 5px 0px;
background-color: rgb(245, 245, 245);
font-size: 12px;
overflow: hidden;
}
.panel-google-plus > .panel-google-plus-tags > ul > li::after {
content:"";
position: absolute;
top: 0px;
right: 0px;
height: 100%;
border-right: 3px solid rgb(66, 127, 237);
}
.panel-google-plus > .panel-google-plus-tags > ul:hover > li,
.panel-google-plus > .panel-google-plus-tags > ul > li:first-child {
padding: 5px 15px 5px 10px;
width: auto;
cursor: pointer;
margin-left: auto;
}
.panel-google-plus > .panel-google-plus-tags > ul:hover > li {
background-color: rgb(255, 255, 255);
}
.panel-google-plus > .panel-google-plus-tags > ul > li:hover {
background-color: rgb(66, 127, 237);
color: rgb(255, 255, 255);
}
.panel-google-plus > .panel-heading,
.panel-google-plus > .panel-footer {
background-color: rgb(255, 255, 255);
...