JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://meyerweb.com/eric/tools/css/reset/reset.css">
<nav>
<div id="topBar"></div>
<div id="menuTab"><input type="checkbox" id="menuToggle">≡</div>
</nav>
<section>
<div id="slide1" class="slide">
</div>
</section>
CSS
nav {
position: absolute;
z-index: 2;
}
#topBar {
height: 0.1em;
background-color: #1f1f1f;
position: fixed;
z-index: 2;
width: 100%;
box-shadow: 0 0 3px #1f1f1f;
}
#menuTab {
position: fixed;
z-index: 2;
left: 90%;
box-shadow: #1f1f1f 0px 0px 3px 0px;
background-color: #1f1f1f;
padding: 0.3em;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
color: #ffffff
}
#menuIcon:hover {
opacity: 0.6;
cursor: pointer;
}
#slide1 {
background: url('http://static.tumblr.com/78708c8c0ab6a659f4323a82d54d4dc5/cjtdloz/V9Fmyvp0z/tumblr_static_red_redder_reddest.jpg') no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
position: relative;
z-index: 1;
height: 50em;
}
#menuToggle {
height: 24px;
width: 24px;
position: absolute;
top: 0;
left: 0;
margin: 0;
padding: 0;
cursor: pointer;
opacity: 0;
}
input#menuToggle:checked + #menuOverlay {
position:fixed;
top:0;
left:0;
width:100%;
opacity:0.95;
z-index: 3;
}
@media only screen and (min-width: 0px) and (max-width: 768px) {
input#menuToggle:checked + #menuOverlay {
background:#000;
height:100%;
}
}
@media only screen and (min-width: 769px) {
input#menuToggle:checked + #menuOverlay {
background:#1f1f1f;
height:2.4em;
}
}