Skip to content

Instantly share code, notes, and snippets.

@darshilv
Last active August 29, 2015 13:56
Show Gist options
  • Save darshilv/9241321 to your computer and use it in GitHub Desktop.
Save darshilv/9241321 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
/*
These are the normal comments
*/
// These wont make it to the other end
.nav {
border : 1px solid;
a{
text-decoration : none;
&:hover{
text-decoration : underline;
}
}
}
.container div {
width: 3em;
height: 3em;
display: inline-block;
$num-colors: 6;
$base-color: #c24;
@for $i from 0 to $num-colors {
&:nth-child(#{$i}) {
background: adjust-hue($base-color, 360deg / $num-colors * $i);
}
}
}
// ----
// Sass (v3.3.0.rc.5)
// Compass (v1.0.0.alpha.18)
// ----
/*
These are the normal comments
*/
// These wont make it to the other end
.nav {
border : 1px solid;
a{
text-decoration : none;
&:hover{
text-decoration : underline;
}
}
}
.container div {
width: 3em;
height: 3em;
display: inline-block;
$num-colors: 6;
$base-color: #c24;
@for $i from 0 to $num-colors {
&:nth-child(#{$i}) {
background: adjust-hue($base-color, 360deg / $num-colors * $i);
}
}
}
.container div {
width: 3em;
height: 3em;
display: inline-block;
$num-colors: 6;
$base-color: #c24;
$spectrum: 180deg;
$offset: 30deg;
@for $i from 0 to $num-colors {
&:nth-child(#{$i}) {
background: adjust-hue($base-color, $offset + $spectrum / $num-colors * $i);
}
}
}
/*
These are the normal comments
*/
.nav {
border: 1px solid;
}
.nav a {
text-decoration: none;
}
.nav a:hover {
text-decoration: underline;
}
.container div {
width: 3em;
height: 3em;
display: inline-block;
}
.container div:nth-child(0) {
background: #cc2244;
}
.container div:nth-child(1) {
background: #ccaa22;
}
.container div:nth-child(2) {
background: #44cc22;
}
.container div:nth-child(3) {
background: #22ccaa;
}
.container div:nth-child(4) {
background: #2244cc;
}
.container div:nth-child(5) {
background: #aa22cc;
}
.container div {
width: 3em;
height: 3em;
display: inline-block;
}
.container div:nth-child(0) {
background: #cc5522;
}
.container div:nth-child(1) {
background: #ccaa22;
}
.container div:nth-child(2) {
background: #99cc22;
}
.container div:nth-child(3) {
background: #44cc22;
}
.container div:nth-child(4) {
background: #22cc55;
}
.container div:nth-child(5) {
background: #22ccaa;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment