<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'>
<nav>
<div class="fixed-navbar-default">
<div class="logoSpace">
<h1 class="admin">Admin</h1>
<div class="navbar-group">MAIN</div>
<a class="btn-home" href="#"><span class="glyphicon glyphicon-tag"></span> Home</a>
<a class="btn-home-default" href="#"><span class="glyphicon glyphicon-fullscreen"></span> Projetos</a>
</div>
<div class="logoSpace">
<div class="navbar-group">MAIN</div>
<a class="btn-home" href="#"><span class="glyphicon glyphicon-tag"></span> Home</a>
<a class="btn-home-default" href="#"><span class="glyphicon glyphicon-fullscreen"></span> Projetos</a>
</div>
<div class="container-buttons">
<div class="logoSpace">
<div class="navbar-group">MAIN</div>
<a class="btn-home-default" href="#"><span class="glyphicon glyphicon-file"></span> Home</a>
<a class="btn-home-default" href="#"><span class="glyphicon glyphicon-signal"></span> Logout</a>
</div>
</div>
</div>
</nav>
<input type="checkbox" name="trigger" id="trigger">
<label for="trigger"></label>
<div class="site-wrap">
<h1>Hey there!</h1>
<h3>This is a <a href="http://www.thatbrightrobot.com" target="_blank">Bright Robot</a> pen!</h3>
<p>We've designed a simple CSS-based solution to the standard "drawer menu" on mobile or responsive sites. It requires no jQuery or Javascript, so it's light weight. (This one even uses inline SVG for the menu icon!)</p>
<p>The menu trigger is a checkbox with a label. The use of the tilde selector for the open menu (<span style="font-family: Courier New; font-size: .9em; background: #eee;">#trigger:checked ~ .site-wrap</span>) has browser support back to IE7, but the <span style="font-family: Courier New; font-size: .9em; background: #eee;">:checked</span> pseudo-class only goes back to IE9.</p>
<p>Enjoy!</p>
</div>
@import url("//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css");
@import url("//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css");
@import url(https://fonts.googleapis.com/css?family=Montserrat|Open+Sans:400,300);
/** page elements */
body { font-size: 14px; line-height: 1.4; font-family: 'Open Sans', sans-serif; font-weight: 300; color: #0f0f0f;
overflow-x: hidden; /* This is important */}
h1, h2, h3 { color: #c74438; }
h3 { margin-bottom: 1em; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h3, p { max-width: 500px; width: 80%; margin: 0 auto 1em; }
nav {
position: fixed;
background: #333;
height: 100%;
width: 100%;
top: 0; left: 0; right: 0; bottom: 0;
}
nav li {
display: block;
border-top: 1px solid #333;
}
nav a {
display: block;
padding: 1em;
color: #fff;
background: linear-gradient(135deg, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
text-decoration: none;
transition: color 0.2s, background 0.5s;
}
nav a:hover {
color: #c74438;
background: linear-gradient(135deg, rgba(0,0,0,0) 0%,rgba(75,20,20,0.65) 100%);
text-decoration: none;
}
.site-wrap {
padding: 4rem 0;
min-height: 100%;
width: 100%;
background: linear-gradient(135deg, rgba(254,255,255,1) 0%,rgba(221,241,249,1) 35%,rgba(160,216,239,1) 100%);
background-size: 200%;
position: relative;
top: 0; bottom: 100%;
left: 0;
z-index: 1;
}
#trigger {
display: block;
height: 0;
width: 0;
}
label[for="trigger"] {
display: block;
height: 30px;
width: 30px;
cursor: pointer;
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' width='40px' height='40px' viewBox='0 0 40 40' enable-background='new 0 0 40 40' xml:space='preserve'><rect width='40' height='8'/><rect y='32' width='40' height='8'/><rect y='16' width='40' height='8'/></svg>");
background-size: contain;
position: absolute;
left: 15px; top: 15px;
z-index: 2;
}
p { margin-bottom: 1rem; }
/** this is where the magic happens **/
#trigger + label, .site-wrap {
transition: left 0.2s;
}
#trigger:checked + label {
left: 215px;
}
#trigger:checked ~ .site-wrap {
left: 200px;
min-width: 100%;
}
/** clear */
*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;}
html, body { height: 100%; width: 100%; }
.fixed-navbar-default {
width: 225px;
background: #fafafa;
border-right: 1px solid #e3e3e3;
position: fixed;
top: 0px;
max-height: 100% !important;
height: 100% !important;
}
.logoSpace {
}
.admin {
font-weight: 300;
text-align: center;
}
.admin-navbar {
background: #ccc;
width: 100%;
height: 60px;
}
.navbar-group {
font-size: 14px;
color: #ccc;
padding: 20px 5px 10px 20px;
}
.container-buttons {
width: 100%;
max-height: 100% !important;
height: 100% !important;
}
.vendas {
display: inline-block;
}
/*
// Admin buttons
*/
a.btn-home {
color: #555;
background: #f2f2f2;
text-decoration: none;
padding: 10px 0px 10px 50px;
width: 100%; /* 77.6%*/
display: block;
}
a.btn-home-default {
color: #555;
background: transparent;
text-decoration: none;
padding: 10px 0px 10px 50px;
width: 100%; /* 77.6%*/
display: block;
}
a.btn-home-default:hover {
background: #eee;
}
a.btn-home:hover {
background: #eee;
}
a.btn-notification {
width: 50px;
height: 50px;
background: #ccc;
}
/*
@end
*/
/** Pen created by Austin Wulf for Bright Robot. */
/* Now actually working! Originally depended on input::before, which is not a thing, but for some reason worked on CodePen. But now I've fixed so that it works in real-life scenarios.
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.