Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
	<title>ZIG & ZAG</title>
	<link rel="stylesheet" type="text/css" href="./index.min.css">
	<link rel="stylesheet" type="text/css" href="./fonts/icons/css/font-awesome.min.css">
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header>
	<nav>
		<ul>
			<li class="nav-li"><div class="hamburger">
				<div>
					<span class="hamburger-line"></span>
					<span class="hamburger-line"></span>
					<span class="hamburger-line"></span>
				</div>
			</div>
			<li class="nav-li hide-only-less-then-1000px"><a href="#"><span class="link_underline">shop</span></a></li>
			<li class="nav-li hide-only-less-then-1000px"><a href="#"><span class="link_underline">collection</span></a></li>
			<li class="nav-li hide-only-less-then-1000px"><a href="#"><span class="link_underline">profile</span></a></li>
			<li class="nav-li hide-only-less-then-1000px"><a href="#"><span class="link_underline">journal</span></a></li>
		</ul>
		<h1><a href="./index.html">ZIG&ZAG</a></h1>
		<ul class="text-right">
			<li class="nav-li hide-only-less-then-1000px"><a href="#"><span class="link_underline">instagram</span></a></li>
			<li class="nav-li hide-only-less-then-1000px"><a href="#"><span class="link_underline">stockists</span></a></li>
			<li class="nav-li hide-only-less-then-1000px"><a href="#"><span class="link_underline">Контакты</span></a></li>
			<li class="nav-li hide-only-less-then-1000px"><a href="#"><span class="link_underline">Блог</span></a></li>
			<li class="nav-li"><a href="#"><i class="fa fa-search fa-lg"></i></a></li>
			<li class="nav-li"><a href="#"><i class="fa fa-shopping-bag fa-lg"></i></a></li>
		</ul>
		<div>
			<div class="header-menu">
				<hr>
				<div class="hm-l">
					<div>
						<a href="#" class="hm-l-title">new</a>
						<ul class="hm-l-ul">
							<li><a class="hm-l-link" href="#summer" title="Summer 2018"><span class="link_underline">Summer 2018</span></a></li>
							<li><a class="hm-l-link" href="about.html" title="Signatures"><span class="link_underline">Signatures</span></a></li>
							<li><a class="hm-l-link" href="#" title="Denim"><span class="link_underline">Denim</span></a></li>
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">Bikinis</span></a></li>
							<li><a class="hm-l-link" href="#" title="Apparel"><span class="link_underline">Apparel</span></a></li>
							<li><a class="hm-l-link" href="#" title="Pre Order"><span class="link_underline">Pre Order</span></a></li>
							<li><a class="hm-l-link" href="#" title="Gift Card"><span class="link_underline">Gift Card</span></a></li>
						</ul>
					</div>
					<div>
						<a href="#" class="hm-l-title">swim</a>
						<ul class="hm-l-ul">			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">Bikinis</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Onepieces"><span class="link_underline">Onepieces</span></a></li>
						</ul>
					</div>
					<div>
						<a href="#" class="hm-l-title">apparel</a>
						<ul class="hm-l-ul">			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">tops</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Onepieces"><span class="link_underline">bottoms</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">denim</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">dresses</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">playsuits</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">knitwear</span></a></li>
						</ul>
					</div>
					<div>
						<a href="#" class="hm-l-title">mint</a>
						<ul class="hm-l-ul">			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">apparel</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Onepieces"><span class="link_underline">swim</span></a></li>
						</ul>
					</div>
					<div>
						<a href="#" class="hm-l-title">signatures</a>
						<ul class="hm-l-ul">			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">top</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Onepieces"><span class="link_underline">bottoms</span></a></li>			
							<li><a href="#" title="Bikinis"><span class="link_underline">onepieces</span></a></li>
						</ul>
					</div>
					<div>
						<a href="#" class="hm-l-title">sale</a>
						<ul class="hm-l-ul">			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">swim</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Onepieces"><span class="link_underline">apparel</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">denim</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">mini</span></a></li>
						</ul>
					</div>
					<div>
						<a href="#" class="hm-l-title">hats</a>
						<ul class="hm-l-ul">			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">the many shader</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Onepieces"><span class="link_underline">the seraina west</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">the kelly boater</span></a></li>			
							<li><a class="hm-l-link" href="#" title="Bikinis"><span class="link_underline">the mel bucket</span></a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</nav>
</header>
<content>
	Index
</content>
<footer>
	<script src="./jquery.min.js"></script>
	<script src="./index.min.js"></script>
</footer>
</body>
</html>
              
            
!

CSS

              
                @font-face{
	font-family: 'Source Code Pro';
	src: url(fonts/SourceCodePro-Medium.ttf);
}
@font-face{
	font-family: 'Logotype';
	src: url(fonts/zuluzephyr-regular.ttf);
	font-weight: normal;
	font-style: normal;
}
html, body{
	padding: 0;
	margin: 0;
	background: #666;
}
header{
	background: #fff;
	width: 100vw;
	position: relative;
	color: #393939;
	/* comment two */	
}
header nav{
	width: 100vw;
	display: flex;
}
header ul{
	width: 40%;
	margin: 0;
	padding: 0;
	display: flex;
}
.text-right{
	display: block;
}
.nav-li{
	display: inline-flex;
	width: auto;
	height: 90px;
	align-items: center;
}
.nav-li > a, .hamburger{
	width: auto;
	margin-left: 20px;
	margin-right: 20px;
	text-decoration: none;
	color: #393939;
	text-transform: uppercase;
	font-weight: 500;
	cursor: pointer;
}
header h1{
	width: 20%;
	height: 90px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
	font-size: 32px;
	font-family: 'Logotype';
	font-weight: normal;
	font-style: normal;
}
header h1 > a{
	text-decoration: none;
	color: #393939;
}
.text-right{
	text-align: right !important;
}
.link_underline{
	width: auto;
	margin: 0;
	position: relative;
	font-size: 12px;
	font-family: 'Source Code Pro', Courier,monospace;
}
.link_underline:after{
	width: 0px;
	content: ' ';
	height: 1px;
	position: absolute;
	left: 0;
	bottom: -2px;
	background: #666;
	transition: .2s
}
a:hover > .link_underline:after{
	width: 100%;
}
/*-------- Кнопка меню -----------*/
.hamburger{
	width: 40px;
	height: 90px;
	padding-top: 0px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center
}
.hamgurger > div{
	display: block;
}
.hamburger-line{
  	display: inline-block;
	position: relative;
	width: 30px;
	height: 6px;
	transition: .2s;
  	font-size: 14px;
 	letter-spacing: -6.2px;
  	line-height: 7px;
  	float: right;
  	clear: both;
  	text-align: center;
}
.hamburger-line:after{
	content: ' ';
	width: 20px;
	height: 1px;
	position: absolute;
	right: 0;
	bottom: 0px;
	background: #666;
	transition: .1s;
}
.hamburger-click .hamburger-line:nth-child(1):after, .hamburger-click .hamburger-line:nth-child(2):after{
	bottom: -3px;
}
.hamburger-click .hamburger-line:nth-child(1):after{
	transform: rotate(45deg);
	top: 13px;
	width: 25px;
}
.hamburger-click .hamburger-line:nth-child(2):after{
	transform: rotate(-45deg);
	top: 7px;
	width: 25px;
}
.hamburger-click .hamburger-line:nth-child(3):after{
	width: 0px;
}
.header-menu{
	background: #fff;
	transition: .1s;
	visibility: hidden;
	top: 90px;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0px 80px 40px 75px;
	width: calc(100% - 155px);
	min-height: 300px;
	position: absolute;
	cursor: auto;
}
.header-menu hr{
	width: 90%;
	height: 1px;
	position: absolute;
	top: -7px;
	left: 0;
	right: 0;
	border: 0;
	background: #DDDDDD;
}
.hm-l{
	display: flex;
	padding-top: 40px;
	padding-bottom: 40px;
	margin-left: -30px;    
	font-weight: 200;
    text-transform: uppercase;
    line-height: 20px;
}
.hm-l > div{
	display: inline-block;
	width: 12.5%;
	font-family: 'Source Code Pro';
	font-size: 12px;
	padding-left: 30px;
    min-height: 300px;
}
.hm-l-ul{
	display: flex;
	flex-direction: column;
	width: 100%;
	height: auto;
	margin-top: 20px;
	margin-bottom: 20px;
}
.hm-l-ul > li{
	margin: 0;
	width: 100%;
	list-style: none;
}
.hm-l-ul > li > a{
	display: block;
	width: 100%;
	padding: 2px 0;
	font-family: 'Source Code Pro';
	font-size: 0.95em;
	font-weight: 400;
	letter-spacing: 0px;
	text-decoration: none;
	color: #000;
}
.hm-l-title{
	width: auto;
	font-family: 'Source Code Pro';
	font-weight: 200;
	position: relative;
	text-decoration: none;
	font-size: 1em;
	color: #000;
}
.hm-l-title:after{
	content: ' ';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 100%;
	height: 1px;
	background: #393939;
}
@media screen and (max-width: 1000px){
	.hide-only-less-then-1000px{
		display: none;
	}
	.header-menu hr{
		display: none
	}
	.header-menu{
		padding: 0px;
		width: 100%;
		min-height: 300px;
		position: absolute;
		cursor: auto;
	}
	.hm-l{
		display: flex;
		flex-direction: column;
		padding-bottom: 0px;
		margin-left: 0px;
	}
	.hm-l > div{
		display: inline-block;
		width: 100%;
		padding-left: 0px;
	    min-height: auto;
	    height: auto;
	    position: relative;
	}
	.hm-l-ul{
		display: flex;
		flex-direction: column;
		width: 100%;
		height: auto;
		margin-top: 20px;
		margin-bottom: 20px;
	}
	.hm-l-ul > li{
		display: none;
		visibility: hidden;
		width: calc(100% - 40px);
		padding-left: 40px;
		transition: .5s;
	}
	.hm-l-title:active ~ .hm-l-ul li, .hm-l-title:focus ~ .hm-l-ul li, .hm-l-ul:active > li, .hm-l-ul:focus > li{
		display: block;
		visibility: visible;
	}
	.hm-l-ul > li > a{
		display: block;
		width: 100%;
		padding: 2px 0;
		letter-spacing: 0px;
	}
	.hm-l-title{
		display: block;
		width: calc(100vw - 15px);
		font-weight: 200;
		position: relative;
		font-size: 2em;
		padding-left: 15px;
	}
	.hm-l-title:after{
		content: ' ';
		display: block;
		position: absolute;
		top: 8px;
		left: auto;
		right: 22px;
		width: 20px;
		height: 3px;
		background: #393939;
	}
	.hm-l-title:before{
		content: ' ';
		display: block;
		position: absolute;
		top: 0px;
		right: 30px;
		width: 3px;
		height: 20px;
		background: #393939;
	}
	div:active > .hm-l-title:before, div:focus > .hm-l-title:before, div:hover > .hm-l-title:before{
		display: none;
		visibility: hidden;
	}
}
              
            
!

JS

              
                
$(".hm-l-link").click(function(e){
	$(".hamburger").removeClass('hamburger-click');
	$(".header-menu").css('visibility', 'hidden');
	e.preventDefault();
	linkLocation = $(e.currentTarget).attr('href');
	window.location = linkLocation;
});
if(window.innerWidth < 1000){
	$(".hamburger").click(function(){
		if($(".header-menu").css('visibility') == 'visible'){
			$(".hamburger").removeClass('hamburger-click');
			$(".header-menu").css('visibility', 'hidden');
		}else{
			$(".header-menu").css('visibility', 'visible');
			$(".hamburger").addClass('hamburger-click');
		}
	});
}else{
	$(".hamburger").mouseenter(function(){
		$(".header-menu").css('visibility', 'visible');
		$(".hamburger").addClass('hamburger-click');
	});
	$(".header-menu").mouseleave(function(){
		$(".hamburger").removeClass('hamburger-click');
		$(".header-menu").css('visibility', 'hidden');
	});
}
              
            
!
999px

Console