Skip to content

Instantly share code, notes, and snippets.

@lisacatalano
Created March 3, 2014 13:48
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/9325218 to your computer and use it in GitHub Desktop.
Save lisacatalano/9325218 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)
// ----
@import "compass";
$size: 90px;
$base: #e3161a;
.box {
width: $size;
height: $size;
float: left;
margin-right: 10px;
border: 1px solid black;
}
.box:nth-of-type(1) { background-color: $base; }
.box:nth-of-type(2) { background-color: $base; }
.box:nth-of-type(3) { background-color: $base; }
.box:nth-of-type(4) { background-color: $base; }
.box:nth-of-type(5) { background-color: $base; }
.box:nth-of-type(6) { background-color: $base; }
.box:nth-of-type(7) { background-color: $base; }
.box:nth-of-type(8) { background-color: $base; }
.box:nth-of-type(9) { background-color: $base; }
.box:nth-of-type(10) { background-color: $base; }
.box:nth-of-type(11) { background-color: $base; }
.box:nth-of-type(12) { background-color: $base; }
.box {
width: 90px;
height: 90px;
float: left;
margin-right: 10px;
border: 1px solid black;
}
.box:nth-of-type(1) {
background-color: #e3161a;
}
.box:nth-of-type(2) {
background-color: #e3161a;
}
.box:nth-of-type(3) {
background-color: #e3161a;
}
.box:nth-of-type(4) {
background-color: #e3161a;
}
.box:nth-of-type(5) {
background-color: #e3161a;
}
.box:nth-of-type(6) {
background-color: #e3161a;
}
.box:nth-of-type(7) {
background-color: #e3161a;
}
.box:nth-of-type(8) {
background-color: #e3161a;
}
.box:nth-of-type(9) {
background-color: #e3161a;
}
.box:nth-of-type(10) {
background-color: #e3161a;
}
.box:nth-of-type(11) {
background-color: #e3161a;
}
.box:nth-of-type(12) {
background-color: #e3161a;
}
<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