Menu Navigasi Pure CSS Responsive


Menu Navigasi Pure CSS Responsive

CSS:
#puremaspardi {
background: #000000;
width: auto;
box-sizing: content-box;
}
#puremaspardi ul {
list-style: none;
margin: 0;
padding: 0;
line-height: 1;
display: block;
zoom: 1;
font-size: 0;
}
#puremaspardi ul:after {
content: " ";
display: block;
font-size: 0;
height: 0;
clear: both;
visibility: hidden;
}
#puremaspardi ul li {
display: inline-block;
padding: 0;
margin: 0;
}
#puremaspardi.align-right ul li {
float: right;
}
#puremaspardi.align-center ul {
text-align: center;
font-size: 0;
}
#puremaspardi ul li a {
color: #fff;
text-decoration: none;
display: block;
padding: 15px 25px;
font-family: 'Open Sans', sans-serif;
font-weight: 700;
text-transform: uppercase;
font-size: 14px;
position: relative;
-webkit-transition: color .25s;
-moz-transition: color .25s;
-ms-transition: color .25s;
-o-transition: color .25s;
transition: color .25s;
}
#puremaspardi ul li a:hover {
color: #ffffff;
}
#puremaspardi ul li a:hover:before {
width: 100%;
}
#puremaspardi ul li a:after {
content: "";
display: block;
position: absolute;
right: -3px;
top: 19px;
height: 6px;
width: 6px;
background: #fff;
opacity: .5;
}
#puremaspardi ul li a:before {
content: "";
display: block;
position: absolute;
left: 0;
bottom: 0;
height: 3px;
width: 0;
background: #ffffff;
-webkit-transition: width .25s;
-moz-transition: width .25s;
-ms-transition: width .25s;
-o-transition: width .25s;
transition: width .25s;
}
#puremaspardi ul li.last > a:after,
#puremaspardi ul li:last-child > a:after {
display: none;
}
#puremaspardi ul li.active a {
color: #ffffff;
}
#puremaspardi ul li.active a:before {
width: 100%;
}
#puremaspardi.align-right li.last > a:after,
#puremaspardi.align-right li:last-child > a:after {
display: block;
}
#puremaspardi.align-right li:first-child a:after {
display: none;
}
@media screen and (max-width: 768px) {
#puremaspardi ul li {
float: none;
display: block;
}
#puremaspardi ul li a {
width: 100%;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-bottom: 1px solid #1a1a1a;
}
#puremaspardi ul li.last > a,
#puremaspardi ul li:last-child > a {
border: 0;
}
#puremaspardi ul li a:after {
display: none;
}
#puremaspardi ul li a:before {
display: none;
}
}


Html :
<div id="puremaspardi">
<ul>
<li><a href="#" target="_blank"><span><i class="fa fa-fw fa-home"></i> Home</span></a></li>
<li><a href="#" target="_blank"><span>Beranda</span></a></li>
<li><a href="#" target="_blank"><span>Rumah</span></a></li>
<li><a href="#" target="_blank"><span>Sitemap</span></a></li>
</ul>
</div>

Tutorial :
  • Masuk ke edit template di blog anda
  • Kode CSS letakan diats kode */]]></b:skin> or </style>
  • Kode Html letakan diatas atau dibawah kode </header> atau bisa juga dibawah kode <div id='content-wrapper'> (Bebas sesuai selera)
  • Simpan Template dan lihat hasilnya.
  • Untuk font family sesuaikan sesuai font yang anda gunakan.
  • Demo
Share This :

Artikel terkait : Menu Navigasi Pure CSS Responsive

Posting Lebih Baru Posting Lama

0 komentar: