Skip to content

Instantly share code, notes, and snippets.

@lisacatalano
Created March 3, 2014 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lisacatalano/9324741 to your computer and use it in GitHub Desktop.
Save lisacatalano/9324741 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
$base: #e3161a;
.box {
width: 95px;
height: 95px;
float: left;
margin-right: 10px;
border: 1px solid black;
}
.box:nth-of-type(1) { background-color: $base; }
.box:nth-of-type(2) { background: lighten($base, 20%); }
.box:nth-of-type(3) { background: darken($base, 20%); }
.box:nth-of-type(4) { background: adjust-hue($base,60deg); }
.box:nth-of-type(5) { background: adjust-hue($base,90deg);}
.box:nth-of-type(6) { background: desaturate($base, 50%);}
.box:nth-of-type(7) { background: grayscale($base);}
.box:nth-of-type(8) { background: grayscale(darken($base, 20%));}
.box:nth-of-type(9) { background: invert($base);}
.box:nth-of-type(10) { background: complement($base);}
.box:nth-of-type(11) { background: shade($base, 20%);}
.box:nth-of-type(12) { background: tint($base, 20%);}
.box {
width: 95px;
height: 95px;
float: left;
margin-right: 10px;
border: 1px solid black;
}
.box:nth-of-type(1) {
background-color: #e3161a;
}
.box:nth-of-type(2) {
background: #f16e71;
}
.box:nth-of-type(3) {
background: #860d0f;
}
.box:nth-of-type(4) {
background: #e3df16;
}
.box:nth-of-type(5) {
background: #80e316;
}
.box:nth-of-type(6) {
background: #a55456;
}
.box:nth-of-type(7) {
background: #7d7d7d;
}
.box:nth-of-type(8) {
background: #4a4a4a;
}
.box:nth-of-type(9) {
background: #1ce9e5;
}
.box:nth-of-type(10) {
background: #16e3df;
}
.box:nth-of-type(11) {
background: #b51114;
}
.box:nth-of-type(12) {
background: #e84447;
}
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment