Created
March 5, 2015 21:34
-
-
Save DannyJoris/9599470a39410daf2920 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<article class="block"></article> | |
<article class="block"></article> | |
<article class="block"></article> | |
<article class="block hotpink"></article> | |
<article class="block hotpink"></article> | |
<article class="block"></article> | |
<article class="block"></article> | |
<article class="block"></article> |
This file contains hidden or 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
// ---- | |
// Sass (v3.2.19) | |
// Compass (v0.12.7) | |
// Breakpoint (v2.0.7) | |
// Zen Grids (v1.4) | |
// ---- | |
@import "breakpoint"; | |
@import "zen"; | |
$luigi: 600px; | |
$yoshi: 960px; | |
article { | |
height: 75px; | |
box-sizing: border-box; | |
border: 5px solid white; | |
} | |
.block { | |
width: 100%; | |
background: pink; | |
$zen-column-count: 12; | |
&:nth-child(8n + 1) { | |
background: purple; | |
@include breakpoint($luigi) { | |
@include zen-grid-item(6, 1, left); | |
@include zen-clear(left); | |
} | |
@include breakpoint($yoshi) { | |
@include zen-grid-item(4, 1, left); | |
@include zen-clear(left); | |
} | |
} | |
&:nth-child(8n + 2) { | |
@include breakpoint($luigi) { | |
@include zen-grid-item(6, 7, left); | |
@include zen-clear(none); | |
} | |
@include breakpoint($yoshi) { | |
@include zen-grid-item(4, 5, left); | |
@include zen-clear(none); | |
} | |
} | |
&:nth-child(8n + 3) { | |
@include breakpoint($luigi) { | |
@include zen-grid-item(6, 1, left); | |
@include zen-clear(left); | |
} | |
@include breakpoint($yoshi) { | |
@include zen-grid-item(4, 9, left); | |
@include zen-clear(none); | |
} | |
} | |
&:nth-child(8n + 4) { | |
@include breakpoint($luigi) { | |
@include zen-grid-item(6, 7, left); | |
@include zen-clear(none); | |
} | |
@include breakpoint($yoshi) { | |
@include zen-grid-item(6, 1, left); | |
@include zen-clear(left); | |
} | |
} | |
&:nth-child(8n + 5) { | |
@include breakpoint($luigi) { | |
@include zen-grid-item(6, 1, left); | |
@include zen-clear(left); | |
} | |
@include breakpoint($yoshi) { | |
@include zen-grid-item(6, 7, left); | |
@include zen-clear(none); | |
} | |
} | |
&:nth-child(8n + 6) { | |
@include breakpoint($luigi) { | |
@include zen-grid-item(6, 7, left); | |
@include zen-clear(none); | |
} | |
@include breakpoint($yoshi) { | |
@include zen-grid-item(4, 1, left); | |
@include zen-clear(left); | |
} | |
} | |
&:nth-child(8n + 7) { | |
@include breakpoint($luigi) { | |
@include zen-grid-item(6, 1, left); | |
@include zen-clear(left); | |
} | |
@include breakpoint($yoshi) { | |
@include zen-grid-item(4, 5, left); | |
@include zen-clear(none); | |
} | |
} | |
&:nth-child(8n) { | |
background: violet; | |
@include breakpoint($luigi) { | |
@include zen-grid-item(6, 7, left); | |
@include zen-clear(none); | |
} | |
@include breakpoint($yoshi) { | |
@include zen-grid-item(4, 9, left); | |
@include zen-clear(none); | |
} | |
} | |
} | |
.hotpink { | |
background: hotpink; | |
} |
This file contains hidden or 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
article { | |
height: 75px; | |
box-sizing: border-box; | |
border: 5px solid white; | |
} | |
.block { | |
width: 100%; | |
background: pink; | |
} | |
.block:nth-child(8n + 1) { | |
background: purple; | |
} | |
@media (min-width: 600px) { | |
.block:nth-child(8n + 1) { | |
float: left; | |
width: 50%; | |
margin-left: 0%; | |
margin-right: -50%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: left; | |
} | |
} | |
@media (min-width: 960px) { | |
.block:nth-child(8n + 1) { | |
float: left; | |
width: 33.33333%; | |
margin-left: 0%; | |
margin-right: -33.33333%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: left; | |
} | |
} | |
@media (min-width: 600px) { | |
.block:nth-child(8n + 2) { | |
float: left; | |
width: 50%; | |
margin-left: 50%; | |
margin-right: -100%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: none; | |
} | |
} | |
@media (min-width: 960px) { | |
.block:nth-child(8n + 2) { | |
float: left; | |
width: 33.33333%; | |
margin-left: 33.33333%; | |
margin-right: -66.66667%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: none; | |
} | |
} | |
@media (min-width: 600px) { | |
.block:nth-child(8n + 3) { | |
float: left; | |
width: 50%; | |
margin-left: 0%; | |
margin-right: -50%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: left; | |
} | |
} | |
@media (min-width: 960px) { | |
.block:nth-child(8n + 3) { | |
float: left; | |
width: 33.33333%; | |
margin-left: 66.66667%; | |
margin-right: -100%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: none; | |
} | |
} | |
@media (min-width: 600px) { | |
.block:nth-child(8n + 4) { | |
float: left; | |
width: 50%; | |
margin-left: 50%; | |
margin-right: -100%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: none; | |
} | |
} | |
@media (min-width: 960px) { | |
.block:nth-child(8n + 4) { | |
float: left; | |
width: 50%; | |
margin-left: 0%; | |
margin-right: -50%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: left; | |
} | |
} | |
@media (min-width: 600px) { | |
.block:nth-child(8n + 5) { | |
float: left; | |
width: 50%; | |
margin-left: 0%; | |
margin-right: -50%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: left; | |
} | |
} | |
@media (min-width: 960px) { | |
.block:nth-child(8n + 5) { | |
float: left; | |
width: 50%; | |
margin-left: 50%; | |
margin-right: -100%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: none; | |
} | |
} | |
@media (min-width: 600px) { | |
.block:nth-child(8n + 6) { | |
float: left; | |
width: 50%; | |
margin-left: 50%; | |
margin-right: -100%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: none; | |
} | |
} | |
@media (min-width: 960px) { | |
.block:nth-child(8n + 6) { | |
float: left; | |
width: 33.33333%; | |
margin-left: 0%; | |
margin-right: -33.33333%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: left; | |
} | |
} | |
@media (min-width: 600px) { | |
.block:nth-child(8n + 7) { | |
float: left; | |
width: 50%; | |
margin-left: 0%; | |
margin-right: -50%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: left; | |
} | |
} | |
@media (min-width: 960px) { | |
.block:nth-child(8n + 7) { | |
float: left; | |
width: 33.33333%; | |
margin-left: 33.33333%; | |
margin-right: -66.66667%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: none; | |
} | |
} | |
.block:nth-child(8n) { | |
background: violet; | |
} | |
@media (min-width: 600px) { | |
.block:nth-child(8n) { | |
float: left; | |
width: 50%; | |
margin-left: 50%; | |
margin-right: -100%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: none; | |
} | |
} | |
@media (min-width: 960px) { | |
.block:nth-child(8n) { | |
float: left; | |
width: 33.33333%; | |
margin-left: 66.66667%; | |
margin-right: -100%; | |
padding-left: 10px; | |
padding-right: 10px; | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
word-wrap: break-word; | |
clear: none; | |
} | |
} | |
.hotpink { | |
background: hotpink; | |
} |
This file contains hidden or 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
<article class="block"></article> | |
<article class="block"></article> | |
<article class="block"></article> | |
<article class="block hotpink"></article> | |
<article class="block hotpink"></article> | |
<article class="block"></article> | |
<article class="block"></article> | |
<article class="block"></article> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment