Дизайнерская кнопка-переключатель



Посмотреть в действии

<div class="sse">
    <input type="checkbox" id="sse">
    <label><i></i></label>     
</div>
.sse {
	position: relative;
	width: 80px;
	height: 15px;
	margin: auto;
	margin-bottom: -20px;
	padding:0;
	top:10px;
	left:-10px;
}

.sse input {
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	z-index: 100;
	position: absolute;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.sse label {
	display: block;
	width: 100%;
	height: 100%;
	background: #a5a39d;
	border-radius: 40px;
	box-shadow:
	inset 0 3px 8px 1px rgba(0,0,0,0.2),
	0 1px 0 rgba(255,255,255,0.5);
}

.sse label:after {
	content: "";
	position: absolute;
	z-index: -1;
	top: -8px; right: -8px; bottom: -8px; left: -8px;
	border-radius: inherit;
	background: #ababab;
	background: -moz-linear-gradient(#f2f2f2, #ababab);
	background: -ms-linear-gradient(#f2f2f2, #ababab);
	background: -o-linear-gradient(#f2f2f2, #ababab);
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#ababab));
	background: -webkit-linear-gradient(#f2f2f2, #ababab);
	background: linear-gradient(#f2f2f2, #ababab);
	box-shadow: 0 0 10px rgba(0,0,0,0.3),
		0 1px 1px rgba(0,0,0,0.25);
}

.sse label:before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -18px; right: -18px; bottom: -18px; left: -18px;
	border-radius: inherit;
}

.sse label i {
	display: block;
	height: 100%;
	width: 60%;
	border-radius: inherit;
	position: absolute;
	z-index: 2;
	right: 40%;
	top: 0;
	background: #b2ac9e;
	background: -moz-linear-gradient(#f7f2f6, #b2ac9e);
	background: -ms-linear-gradient(#f7f2f6, #b2ac9e);
	background: -o-linear-gradient(#f7f2f6, #b2ac9e);
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#f7f2f6), to(#b2ac9e));
	background: -webkit-linear-gradient(#f7f2f6, #b2ac9e);
	background: linear-gradient(#f7f2f6, #b2ac9e);
	box-shadow:
	inset 0 1px 0 white,
	0 0 8px rgba(0,0,0,0.3),
	0 5px 5px rgba(0,0,0,0.2);
}

.sse label i:after {
	content: "SSE";
	font-size: 10px;
	position: absolute;
	left: 27%;
	top: -5%;
	width: 70%;
	height: 50%;
}

.sse label i:before {
	content: "OFF";
	text-transform: uppercase;
	font-style: normal;
	font-weight: bold;
	color: rgba(0,0,0,0.4);
	text-shadow: 0 1px 0 #bcb8ae, 0 -1px 0 #97958e;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	position: absolute;
	top: 80%;
	margin-top: -12px;
	right: -50%;
}

.sse input:checked ~ label {
background: #9abb82;
}

.sse input:checked ~ label i {
	right: -1%;
}

.sse input:checked ~ label i:before {
	content: "ON";
	right: 115%;
	top: 80%;
	color: #82a06a;
	text-shadow:
	0 1px 0 #afcb9b,
	0 -1px 0 #6b8659;
}