Skip to content

Instantly share code, notes, and snippets.

View ericdouglas's full-sized avatar

Eric Douglas ericdouglas

View GitHub Profile
@ericdouglas
ericdouglas / gist:9091667
Created February 19, 2014 13:11
Normalize.css - Jade
link( rel='stylesheet', href='css/normalize.css', type='text/css' )
link( rel='stylesheet', href='css/grid.css', type='text/css' )
@ericdouglas
ericdouglas / gist:9091742
Created February 19, 2014 13:16
Viewport Meta Tag (HTML)
<meta name="viewport" content="width=device-width, initial-scale=1"/>
@ericdouglas
ericdouglas / gist:9091743
Created February 19, 2014 13:16
Viewport Meta Tag (Jade)
meta( name='viewport', content='width=device-width, initial-scale=1' )
@ericdouglas
ericdouglas / gist:9091843
Last active August 29, 2015 13:56
Box-sizing:border-box - CSS
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@ericdouglas
ericdouglas / gist:9091845
Last active August 29, 2015 13:56
Box-sizing:border-box - Stylus
// Interpolation
vendor(prop, args)
-webkit-{prop} args
-moz-{prop} args
{prop} args
*, *:before, *:after
vendor(box-sizing, border-box)
@ericdouglas
ericdouglas / gist:9091901
Created February 19, 2014 13:24
Create a Container - CSS
.container {
margin: 0 auto;
max-width: 48rem;
width: 90%;
}
@ericdouglas
ericdouglas / gist:9091902
Created February 19, 2014 13:24
Create a Container - Stylus
.container
margin 0 auto
max-width 48rem
width 90%
@ericdouglas
ericdouglas / gist:9091985
Created February 19, 2014 13:29
Create a Container - Jade
.container
// Your Content
@ericdouglas
ericdouglas / gist:9091987
Created February 19, 2014 13:29
Create a Container - HTML
<div class="container">
<!-- Your Content-->
</div>
@ericdouglas
ericdouglas / gist:9092066
Created February 19, 2014 13:33
Create Column - HTML
<div class="container">
<div class="column">
<!-- Your Content-->
</div>
</div>