パソコン – css PC –

PCアイコン アイコン

cssのみで PC アイコンを作成してみました。微妙です・・・

ソース

html

<div class="pc"></div>

css

/* モニタ */
.pc {
	font-size: 100px;
	position: relative;
	width: 1.4em;
	height: 0.9em;
	border-top: 0.1em solid #39a9d6;
	border-bottom: 0.3em solid #39a9d6;
	border-left: 0.1em solid #39a9d6;
	border-right: 0.1em solid #39a9d6;
	border-radius: 0.1em;
}
/* 脚 */
.pc::before {
	content: "";
	position: absolute;
	top: 1.2em;
	left: 0.5em;
	width: 0.4em;
	height: 0.2em;
	background-color: #39a9d6;
}
/* 脚下 */
.pc::after {
	content: "";
	position: absolute;
	top: 1.4em;
	left: 0.2em;
	width: 1em;
	height: 0.1em;
	background-color: #39a9d6;
	border-radius: 0.1em;
}
タイトルとURLをコピーしました