Created
February 20, 2014 19:33
-
-
Save scottkellum/9121469 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
<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div> |
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.3.0.rc.4) | |
// Compass (v1.0.0.alpha.18) | |
// Color Schemer (v0.2.8) | |
// ---- | |
@mixin colors($colors) { | |
html, body { | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
@for $i from 1 through length($colors) { | |
div:nth-child(#{$i}) { | |
width: 100% / length($colors); | |
height: 100%; | |
background: nth($colors, $i); | |
float: left; | |
} | |
} | |
} | |
@import 'color-schemer'; | |
$cs-primary: purple; | |
$cs-scheme: tetrad; // mono, complement, triad, tetrad, analogic, accented-analogic | |
// $cs-hue-offset: 30deg; | |
// $cs-color-model: rgb; // rgb, ryb | |
@include colors( | |
cs-primary() | |
cs-secondary() | |
cs-tertiary() | |
cs-quadrary() | |
// cmyk(60,100,10,6) | |
); |
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
html, body { | |
width: 100%; | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
div:nth-child(1) { | |
width: 25%; | |
height: 100%; | |
background: purple; | |
float: left; | |
} | |
div:nth-child(2) { | |
width: 25%; | |
height: 100%; | |
background: #800040; | |
float: left; | |
} | |
div:nth-child(3) { | |
width: 25%; | |
height: 100%; | |
background: green; | |
float: left; | |
} | |
div:nth-child(4) { | |
width: 25%; | |
height: 100%; | |
background: #008040; | |
float: left; | |
} |
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
<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment