There are two means of refuge from the miseries of life: music and cats.
<div class="cp_quote">
<blockquote cite="http://">
<p>There are two means of refuge from the miseries of life: music and cats.</p>
<p class="author">Albert Schweitzer</p>
<p class="tw"><a href="http://twitter.com/intent/tweet?text=There are two means of refuge from the miseries of life: music and cats. - Albert Schweitzer" target="_blank"><i class="fa fa-twitter-square fa-fw" aria-hidden="true"></i>Tweet</a></p>
</blockquote>
</div>
*, *:before, *:after {
font-family: 'FontAwesome';
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.cp_quote {
position: relative;
width: 90%;
margin: 2em auto;
border-left: 3px solid #00bcd4;
}
.cp_quote::before {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
content: '';
transition: all 0.4s ease-out;
background:rgba(0,188,212,.3);
}
.cp_quote:hover::before {
width: 100%;
}
/* ツイート */
.cp_quote .tw {
font-size: 1em;
line-height: 1.5em;
position: absolute;
top: calc(50% - 0.75em);
left: 50%;
display: inline-block;
width: 8em;
height: 1.5em;
-webkit-transform: translate(-50%,100%);
transform: translate(-50%,100%);
transition: all 0.3s ease-out 0.2s;
text-align: center;
opacity: 0;
border-radius: 0.3em;
background: rgba(52,152,220,1);
}
.cp_quote .tw a {
display: block;
text-decoration: none;
color: #ffffff;
}
.cp_quote .tw a:hover {
border-radius: 0.3em;
background: rgba(40,125,182,1);
}
.cp_quote:hover .tw {
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
opacity: 1;
}
/* 引用 */
.cp_quote blockquote {
margin: 0;
padding: 0.5em 1em;
}
/* 引用元名 */
.cp_quote blockquote p.author {
text-align: right;
}
.cp_quote blockquote p.author::before {
content: '00';
}