[パーツ]引用(blockquote) カード型の引用符(blockquote)デザイン

CSS HTML
 2018.02.09
 2018.03.20

カード型の引用符(blockquote)デザイン

カード型の引用符(blockquote)デザインです。

browser:  65 11 20 10 
ニャン易度 

There are two means of refuge from the miseries of life: music and cats.

Albert Schweitzer

<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>
</blockquote>
</div>
*, *:before, *:after {
	font-family: 'FontAwesome';
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}
.cp_quote {
	position: relative;
	width: 90%;
	margin: 1em auto;
	border-radius: 0.5em;
	background: #4dd0e1;
	box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
/* アイコン */
.cp_quote::before {
	font-size: 2.5em;
	position: absolute;
	top: 0.5em;
	left: 0.5em;
	content: '\f10d';
	color: #ffffff;
}
/* 引用 */
.cp_quote blockquote {
	margin: 0;
	padding: 0.5em 0 0 0;
}
.cp_quote blockquote p {
	padding: 2.5em 1.5em 0.5em 1.5em;
}
/* 引用元名 */
.cp_quote blockquote p.author {
	padding: 0.5em 1em;
	text-align: right;
	border-top: 1px dotted #ffffff;
}
.cp_quote blockquote p.author::before {
	content: '00';
}

copypet.jp

CSS3などで新たに追加された要素・装飾方法など、日々コードを書いていないと忘れてしまったり、ささっとプロトタイプを作る時などちょっとしたことに時間をかけている暇はない。そんな時に「あ〜、あれストックしときゃよかったなぁ」って困った自分用のストックブログです。カスタマイズなどがしやすいよう、昨今のweb制作に取り入れられる一般的なコードを中心に掲載しています。

More Info

こんな記事はいかがですか?