Skip to content

Instantly share code, notes, and snippets.

@afraser
Forked from mhodgson/dabblet.css
Created July 12, 2012 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afraser/3100348 to your computer and use it in GitHub Desktop.
Save afraser/3100348 to your computer and use it in GitHub Desktop.
Boundless Plus v2 layout
/* Boundless Plus v2 layout */
body {
margin: 0;
background-color: #333;
height: 100%;
max-height: 100%;
}
header{
height: 100%;
max-height: 100%;
position: absolute;
left: 0px;
top: 0px;
bottom: 0px;
width: 150px;
color: white;
}
.bottom{
position: absolute;
bottom: 0px;
left: 0px;
}
.content {
position: absolute;
left: 150px;
width: 850px;
top: 0px;
bottom: 0px;
height: 100%;
max-height: 100%;
transition-property: left;
transition-duration: .5s;
transition-timing-function: ease-in-out;
}
.tray{
position: absolute;
height: 100%;
min-height: 100%;
width: 82px;
left: -82px;
top: 0px;
bottom: 0px;
box-shadow: -8px 0 8px rgba(0,0,0,0.2);
background-color: #666;
color: white;
transition-property: left;
transition-duration: 0.5s;
transition-timing-function: ease-in-out;
}
.innercontent{
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
overflow-y: scroll;
box-shadow: 0 0 20px rgba(0,0,0,1);
background: #FDFDFD;
width: 850px;
z-index: 10;
min-height: 100%;
}
.innercontent .footer{
width: 100%;
height: 30px;
position: relative;
background: #EEE;
bottom: 0;
}
/*for demonstration*
.content:hover .tray{
left: 160px;
}*/
<header>
<div>top</div>
<div class="bottom">bottom</div>
</header>
<div class="content">
<div class="tray">
<div>top</div>
<div class="bottom">bottom</div>
</div>
<div class="innercontent">
<div>
asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/> asdf<br/>asdf<br/>asdf<br/>sdf<br/>
</div>
<div class="footer">
back forth
</div>
</div>
</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment