Last active
August 27, 2015 04:09
-
-
Save pyrabbit/217df40748506b163165 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(http://fonts.googleapis.com/css?family=Oswald:400,300); | |
h2, h3 { | |
font-family: 'Oswald', sans-serif; | |
font-weight: 300; | |
color: #272F32; | |
} | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
nav { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
overflow: hidden; | |
overflow-x: hidden; | |
overflow-y: auto; | |
white-space: nowrap; | |
background-color: #272F32; | |
-moz-transition: height ease-in-out 0.35s, background linear 0.3s; | |
-webkit-transition: height ease-in-out 0.35s, background linear 0.3s; | |
-o-transition: height ease-in-out 0.35s, background linear 0.3s; | |
transition: height ease-in-out 0.35s, background linear 0.3s; | |
margin-right: 15px; | |
padding-top: 10px; | |
padding-right: 10px; | |
} | |
main.collapsed > nav { | |
height: 10%; | |
} | |
main.collapsed > nav > ul { | |
display: none; | |
} | |
nav > a.toggle-nav { | |
font-family: 'Oswald', sans-serif; | |
font-weight: 300; | |
font-size: 2.0em; | |
vertical-align: middle; | |
text-transform: uppercase; | |
color: #9DBDC6; | |
} | |
nav > ul { | |
font-family: 'Oswald', sans-serif; | |
font-weight: 300; | |
list-style: none; | |
padding-left: 0px; | |
font-size: 2.0em; | |
margin-top: 10%; | |
} | |
nav > ul.pull-down { | |
position: absolute; | |
bottom: 0; | |
} | |
nav > ul > li > a, | |
nav > ul > li > a:visited { | |
color: #9DBDC6; | |
text-transform: uppercase; | |
} | |
nav > ul > li > a:hover { | |
color: #FF3D2E; | |
text-decoration: none; | |
} | |
nav > ul > li > a > i { | |
padding: 11px 50px 11px 10px; | |
} | |
} | |
/* Extra Small Devices, Phones */ | |
@media only screen and (min-width : 480px) { | |
} | |
/* Small Devices, Tablets */ | |
@media only screen and (min-width : 768px) { | |
nav { | |
width: 200px; | |
height: 100%; | |
-moz-transition: width ease-in-out 0.35s, background linear 0.3s; | |
-webkit-transition: width ease-in-out 0.35s, background linear 0.3s; | |
-o-transition: width ease-in-out 0.35s, background linear 0.3s; | |
transition: width ease-in-out 0.35s, background linear 0.3s; | |
} | |
nav > ul { | |
margin-top: 0px; | |
} | |
main.collapsed > nav { | |
background-color: #272F32; | |
width: 50px; | |
height: 100%; | |
} | |
main.collapsed > nav > ul { | |
display: inherit; | |
} | |
} | |
/* Medium Devices, Desktops */ | |
@media only screen and (min-width : 992px) { | |
nav > a.toggle-nav { display: none; } | |
} | |
/* Large Devices, Wide Screens */ | |
@media only screen and (min-width : 1200px) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$("nav").hover(function() { | |
$("main").toggleClass("collapsed"); | |
}); | |
$("nav a.toggle-nav").on("tap", function() { | |
$("main").toggleClass("collapsed"); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'> | |
<meta charset='utf-8'> | |
<!-- Always force latest IE rendering engine or request Chrome Frame --> | |
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible'> | |
<meta content='width=device-width, initial-scale=1.0' name='viewport'> | |
<!-- Use title if it's in the page YAML frontmatter --> | |
<title>Matthew Orahood</title> | |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /> | |
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" /> | |
<link href="/stylesheets/normalize.css" rel="stylesheet" /><link href="/stylesheets/all.css" rel="stylesheet" /> | |
</head> | |
<body class='index'> | |
<main class='collapsed'> | |
<nav> | |
<a class="toggle-nav pull-right" href="#">Menu | |
<i class='fa fa-bars fa-fw'></i> | |
</a><ul> | |
<li> | |
<a href="#"><i class='fa fa-hand-spock-o fa-fw'></i> | |
About | |
</a></li> | |
<li> | |
<a href="#"><i class='fa fa-rocket fa-fw'></i> | |
Projects | |
</a></li> | |
<li> | |
<a href="#"><i class='fa fa-quote-right fa-fw'></i> | |
Blog | |
</a></li> | |
<li> | |
<a href="#"><i class='fa fa-envelope-o fa-fw'></i> | |
Contact | |
</a></li> | |
</ul> | |
<ul class='pull-down'> | |
<li> | |
<a href="#"><i class='fa fa-facebook-square fa-fw'></i> | |
</a></li> | |
<li> | |
<a href="#"><i class='fa fa-twitter fa-fw'></i> | |
</a></li> | |
<li> | |
<a href="#"><i class='fa fa-github fa-fw'></i> | |
Github | |
</a></li> | |
</ul> | |
</nav> | |
</main> | |
<script src='//code.jquery.com/jquery-2.1.4.min.js' type='text/javascript'></script> | |
<script src='//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js' type='text/javascript'></script> | |
<script src="/javascripts/all.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment