|

Cloud icons

Cascading Style Sheets(CSS)を使用してアイコンを実装します。

ご自由にご利用ください。

Previews

Examples html

<!-- icons -->

<div class="icons">

	<span></span>

</div>

<!-- /icons -->

Examples css

/* - icons - */

.icons {
	position: relative;
	width: 25px;
	height: 25px;
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	background-color: rgba(0, 0, 0, 0.0);
	cursor: pointer;
}

.icons span {
	display: block;
	position: absolute;
	bottom: 5px;
	left: 7px;
	width: 14px;
	height: 15px;
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	background-color: rgba(0, 0, 0, 0.0);
	border-top: 1px solid rgba(0, 0, 0, 1.0);
	border-right: 0px solid transparent;
	border-bottom: 1px solid rgba(0, 0, 0, 1.0);
	border-left: 0px solid transparent;
	border-radius: 50% 50% 0 0;
	transition: all .5s;
}

.icons span::before,
.icons span::after {
	content: "";
	display: block;
	position: absolute;
	bottom: -1px;
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	background-color: rgba(0, 0, 0, 0.0);
	border: 1px solid rgba(0, 0, 0, 1.0);
	transition: all .5s;
}

.icons span::before {
	left: 11px;
	width: 50%;
	height: 50%;
	border-left: 0px solid transparent;
	border-radius: 50% 50% 50% 0;
}

.icons span::after {
	right: 11px;
	width: 70%;
	height: 70%;
	border-right: 0px solid transparent;
	border-radius: 50% 50% 0 50%;
}

.icons:hover span {
	border-top: 1px solid rgba(192, 192, 192, 1.0);
	border-bottom: 1px solid rgba(192, 192, 192, 1.0);
}

.icons:active span {
	border-top: 1px solid rgba(0, 0, 0, 1.0);
	border-bottom: 1px solid rgba(0, 0, 0, 1.0);
}

.icons:hover span::before {
	border: 1px solid rgba(192, 192, 192, 1.0);
	border-left: 0px solid transparent;
}

.icons:active span::before {
	border: 1px solid rgba(0, 0, 0, 1.0);
	border-left: 0px solid transparent;
}

.icons:hover span::after {
	border: 1px solid rgba(192, 192, 192, 1.0);
	border-right: 0px solid transparent;
}

.icons:active span::after {
	border: 1px solid rgba(0, 0, 0, 1.0);
	border-right: 0px solid transparent;
}

/* - /icons - */

Summary

最後までご高覧いただきましてありがとうございました。

Cascading Style Sheets(CSS)を使用して実装するアイコンをご紹介させていただきました。

必要に応じて各コードを変更してご自由にご利用ください。

現場からは以上でした。