Skip to content

Instantly share code, notes, and snippets.

View ericdouglas's full-sized avatar

Eric Douglas ericdouglas

View GitHub Profile
@ericdouglas
ericdouglas / gist:9092068
Created February 19, 2014 13:33
Create Column - Jade
.container
.column
// Your Content
//- end of .column
//- end of .container
@ericdouglas
ericdouglas / gist:9092192
Created February 19, 2014 13:40
Column Sizes - HTML
<div class="container">
<div class="row clearfix">
<div class="column half">
<!-- Your Content-->
</div>
<div class="column half">
<!-- Your Content-->
</div>
</div>
</div>
@ericdouglas
ericdouglas / gist:9092193
Created February 19, 2014 13:40
Column Sizes - Jade
.container
.row.clearfix
.column.half
// Your Content
.column.half
// Your Content
//- end of .row.clearfix
//- end of .container
@ericdouglas
ericdouglas / gist:9092262
Created February 19, 2014 13:44
Create Columns - CSS
@media (min-width: 40rem) {
.column {
float: left;
padding-left: 1rem;
padding-right: 1rem;
}
.column.full {
width: 100%;
}
.column.two-thirds {
@ericdouglas
ericdouglas / gistfule.styl
Last active August 29, 2015 13:56
Create Columns - Stylus
@media (min-width: 40rem)
.column
float left
margin 0
padding-left 1rem
padding-right 1rem
.column.full
width 100%
.column.two-thirds
@ericdouglas
ericdouglas / gist:9092674
Created February 19, 2014 14:02
Create Rows - HTML
<div class="container">
<div class="row clearfix">
<div class="column half">
<!-- Your Content-->
</div>
<div class="column half">
<!-- Your Content-->
</div>
</div>
<div class="row clearfix">
@ericdouglas
ericdouglas / gist:9092676
Created February 19, 2014 14:02
Create Rows - Jade
.container
.row.clearfix
.column.half
// Your Content
.column.half
// Your Content
//- end of .row.clearfix
.row.clearfix
.column.half
@ericdouglas
ericdouglas / gist:9092737
Created February 19, 2014 14:04
Clearfix (Made by Nicolas Gallagher) - CSS
.clearfix:before,
.clearfix:after {
content: ' ';
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
@ericdouglas
ericdouglas / gist:9092738
Created February 19, 2014 14:05
Clearfix (Made by Nicolas Gallagher) - Stylus
.clearfix:before,
.clearfix:after
content ' '
display table
.clearfix:after
clear both
.clearfix
*zoom 1
@ericdouglas
ericdouglas / gist:9092805
Created February 19, 2014 14:08
Flow Opposite - Jade
.container
.row.clearfix
.column.half.flow-opposite
// Your Content
.column.half
// Your Content
//- end of .row.clearfix
//- end of .container