JSFiddle - React, Tailwind, and code Playground

HTML

<div class="example">
	<menu>
		<a href="#" class="m1">Profil</a>
		<a href="#" class="m2">Messages</a>
		<a href="#" class="m3">Contacts</a>
		<a href="#" class="m4">Portfolio</a>
		<a href="#" class="m5">CSS-live</a>
	</menu>
</div>

CSS

/*reset*/
a, menu {
	margin:0; 
	padding:0; 
	border:0; 
	outline:0;
}
menu {
	display:block;
}
/*total*/
html {
	font-size:10px;
}
* {
	font-family:arial, sans-serif;
	color:#7f8c8d;
}

/*example*/
.example {
	margin:100px auto;
	background-color:#eceff1;
	padding:55px 0;
}
	.example menu {
		border:1px solid #d8d8d8;
		background-color:#FFF;
		margin:0 auto;
	}
@media only screen and (min-width: 769px) {
	.example {
		width:400px;
	}
	.example menu {
		width:150px;
	}
}
@media only screen and  (max-width: 768px) {
	.example {
		width:200px;
	}
	.example menu {
		width:40px;
	}
	a {
		text-indent:-9999px;
	}
}
		.example menu a {
			list-style:none;
			font-size:1.4em;
			border-top:1px solid #f0f0f0;
			line-height:36px;
			padding-left:37px;
			display:block;
			background-image:url(http://dev.ttcsoft.ru/html/verstka_test/responsive_menu/sprite.png);
			background-repeat:no-repeat;
			text-decoration:none;
		}
			.example menu a:first-child {
				border-top:none;
			}
			.m1 {
				background-position:11px 9px;
			}
				.m1:hover {
					background-position:11px -178px;
				}
			.m2 {
				background-position:11px -27px;
			}
				.m2:hover {
					background-position:11px -214px;
				}
			.m3 {
				background-position:11px -62px;
			}
				.m3:hover {
					background-position:11px -249px;
				}
			.m4 {
				background-position:11px -100px;
			}
				.m4:hover {
					background-position:11px -287px;
				}
			.m5 {
				background-position:11px -137px;
			}
				.m5:hover {
					background-position:11px -324px;
				}