JSFiddle - React, Tailwind, and code Playground
HTML
<nav>
<ul>
<li class="store"><span class="store-icon"></span><a href="#">Loja</a></li>
<li class="movies"><span class="movies-icon"></span><a href="#">Filmes</a></li>
<li class="music"><span class="music-icon"></span><a href="#">Música</a></li>
<li class="books"><span class="books-icon"></span><a href="#">Livros</a></li>
<li class="magazines"><span class="magazines-icon"></span><a href="#">Games</a></li>
<li class="devices"><span class="devices-icon"></span><a href="#">Celulares</a></li>
</ul>
</nav>
CSS
@import url(http://fonts.googleapis.com/css?family=Roboto:300);
body{
font-family: 'Roboto', sans-serif;
font-size: 18px;
background-color: #8000FF;
}
nav {
/*
background: rgba(245, 245, 245, 0.95);
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
*/
width: 200px;
margin: 0;
}
nav ul {
padding: 0;
margin: 0;
}
nav ul li {
list-style: none;
height: 50px;
}
nav ul li:hover {
width: 200px;
height: 50px;
}
nav ul li a {
position: absolute;
width: 140px;
height: 40px;
text-decoration: none;
color: #555;
padding: 10px 0 0 60px;
}
nav ul li a:hover {
color: #fff;
}
.store {
width: 50px;
height: 50px;
margin-bottom: px;
}
.store:hover {
background: #b3c833;
width: 50px;
}
.movies {
width: 50px;
height: 50px;
margin-bottom: px;
}
.movies:hover {
background: #b3c833;
width: 50px;
}
.music {
width: 50px;
height: 50px;
margin-bottom: px;
}
.music:hover {
background: #b3c833;
width: 50px;
}
.books {
width: 50px;
height: 50px;
margin-bottom: px;
}
.books:hover {
background: #b3c833;
width: 50px;
}
.magazines {
width: 50px;
height: 50px;
margin-bottom: px;
}
.magazines:hover {
background: #b3c833;
width: 50px;
}
.devices {
width: 50px;
height: 50px;
margin-bottom: px;
}
.devices:hover {
background: #b3c833;
width: 50px;
}
.store-icon {
position: absolute;
margin-left: 10px;
padding-top: 12px;
}
.store-icon:before {
width: 50px;
height: 50px;
margin-right: 30px;
content:...