Skip to content

Instantly share code, notes, and snippets.

@jpmcde
jpmcde / dabblet.css
Created April 4, 2013 18:34
Flexbox Responsive Off-Canvas Layout
/* Flexbox Responsive Off-Canvas Layout */
body, html { width: 100%; height: 100%; padding: 0; margin: 0; }
#wrapper { display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: vertical; -moz-box-orient: vertical; box-orient: vertical;
height: 100%; width: 100%;
}
#fbox { display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: horizontal; -moz-box-orient: horizontal; box-orient: horizontal; -webkit-box-flex: 1; -moz-box-flex: 1; box-flex: 1;
width: 100%; height: 90%;
padding: 0; margin: 0;
}
@jpmcde
jpmcde / dabblet.css
Created April 2, 2013 05:05
OFF-CANVAS LAYOUT *
/** OFF-CANVAS LAYOUT **/
* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.container { *zoom: 1; height: 100%; width: auto; margin-left: -26px; position: absolute; margin-right: 0; overflow: hidden; }
.container:after { content: ""; display: table; clear: both; }
.left, .right, .main { -webkit-transition: 0.3s all ease; -moz-transition: 0.3s all ease; -o-transition: 0.3s all ease; transition: 0.3s all ease; height:100%; padding: 0; }
header, footer { overflow: hidden; *zoom: 1; clear: both; padding: 0; text-align: center; }
.left {background: green;} .right {background: blue;} .main {background: yellow}
/** 1 PANEL **/