Skip to content

Instantly share code, notes, and snippets.

@andresmijares
Last active August 29, 2015 14:06
Show Gist options
  • Save andresmijares/0364ae7ab837eef6a337 to your computer and use it in GitHub Desktop.
Save andresmijares/0364ae7ab837eef6a337 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.3)
// Compass (v1.0.1)
// ----
//Mixins
@mixin name {
//atributes + selectors
}
@include name;
//Mixins with arguments
@mixin name2($color1, $color2) {
span {
background: $color1;
color: $color2;
}
//arguments, also supports math properties
}
//Color functions
a {
$color: #ff0000;
color: lighten($color, 20%);
background: darken($color, 10%);
background: complement($color);
background: desaturate($color, 50%);
background: mix(#ffffff, #000000);
}
//differences properties selector
a {
&:hover {
}
}
a {
color: #ff6666;
background: #cc0000;
background: cyan;
background: #bf4040;
background: #7f7f7f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment