LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

CSS
body {
  background: #171737;
  font-size: 100%;
}

a {
  text-decoration: none;
}

ul,
ul ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrapper {
  width: 220px;
  margin: 100px auto;
  font-size: 0.8125em;
}

.menu {
  height: auto;
  width: auto;
  -webkit-box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.73), 0px 0px 18px 0px rgba(0, 0, 0, 0.13);
          box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.73), 0px 0px 18px 0px rgba(0, 0, 0, 0.13);
}

.menu > li > a {
  background-color: #616975;
  background: -webkit-gradient(linear, left top, left bottom, from(#727a86), to(#505864));
  background: linear-gradient(top, #727a86, #505864);
  border-bottom: 1px solid #33373d;
  width: 100%;
  height: 2.75em;
  line-height: 2.75em;
  text-indent: 2.75em;
  display: block;
  position: relative;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.5);
}

.menu ul li a {
  background: #fff;
  border-bottom: 1px solid #efeff0;
  width: 100%;
  height: 2.75em;
  line-height: 2.75em;
  text-indent: 2.75em;
  display: block;
  position: relative;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.923em;
  font-weight: 400;
  color: #878d95;
}

.menu ul li:last-child a {
  border-bottom: 1px solid #333 73d;
}

.menu > li > a:hover,
.menu > li > a.active {
  background-image: -webkit-gradient(linear, left top, left bottom, from(#45c7eb), to(#2698db));
  background-image: linear-gradient(top, #45c7eb, #2698db);
  border-bottom: 1px solid #103c56;
  -webkit-box-shadow: inset 0px 1px 0px 0px #6ad2ef;
          box-shadow: inset 0px 1px 0px 0px #6ad2ef;
}

.menu > li > a.active {
  border-bottom: 1px solid #1a638f;
}

.menu > li > a:before {
  content: '';
  background-image: url("https://png.icons8.com/spa-flower/nolan/1600");
  background-size: 1em;
  font-size: 36px;
  height: 1em;
  width: 1em;
  position: absolute;
  left: 0;
  top: 50%;
  margin: -.5em 0 0 0;
}

item1 > a:before {
  background-position: 0 0;
}

.submenu {
  display: none;
}

.submenu.toggled {
  display: block;
}

.submenu > li a:hover {
  color: #45c7eb;
}
JS
$(document).ready(function(){
  var a = $('.menu>li');
	a.on('click', function(e){
    var n = a.index(this);
		$('.submenu').eq(n).toggleClass('toggled');
		e.preventDefault();
	});
});
Term
Wed, 12/27/2017 - 07:03

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv