-
-
Save alanburke/2567350 to your computer and use it in GitHub Desktop.
Zen Grids
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Zen Grids | |
*/ | |
/** Scss | |
@media all and (min-width: 50em) { | |
div#main { | |
@include zen-grid-container; | |
} | |
.work { | |
@include zen-grid-item(3, 1); // Span 3 columns starting in 1st column | |
} | |
.events{ | |
@include zen-grid-item(6, 4); // Span 6 columns starting in 4th column | |
} | |
.drupalorg { | |
@include zen-grid-item(3, 10); // Span 3 columns starting in 10th column | |
} | |
} | |
*/ | |
div#main:before, div#main:after { | |
content: ""; | |
display: table; | |
} | |
div#main:after { | |
clear: both; | |
} | |
.work { | |
-moz-box-sizing: border-box; | |
float: left; | |
margin-left: 0; | |
margin-right: -300%; | |
padding-left: 10px; | |
padding-right: 10px; | |
width: 300%; | |
word-wrap: break-word; | |
} | |
.events { | |
-moz-box-sizing: border-box; | |
float: left; | |
margin-left: 300%; | |
margin-right: -900%; | |
padding-left: 10px; | |
padding-right: 10px; | |
width: 600%; | |
word-wrap: break-word; | |
} | |
.drupalorg { | |
-moz-box-sizing: border-box; | |
float: left; | |
margin-left: 900%; | |
margin-right: -1200%; | |
padding-left: 10px; | |
padding-right: 10px; | |
width: 300%; | |
word-wrap: break-word; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="main"> | |
<section class="work"> | |
<section class="events"> | |
<section class="drupalorg"> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","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