Skip to content

Instantly share code, notes, and snippets.

@rw1982
Created June 28, 2015 01:49
Show Gist options
  • Save rw1982/36d01f336e85c5c0ed18 to your computer and use it in GitHub Desktop.
Save rw1982/36d01f336e85c5c0ed18 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@mixin my-mixin($color){
background: $color;
outline: 3px solid red;
padding: 12px;
margin: 24px;
}
%my-mixin{
background: red;
outline: 3px solid red;
padding: 12px;
margin: 24px;
}
//
// using mixin
//
.class-one{
@include my-mixin(red);
}
.another-two {
@include my-mixin(red)
}
//
// using extend
//
.class-three{
@extend %my-mixin;
}
.class-four {
@extend %my-mixin;
}
.class-five .class-six {
@extend %my-mixin;
}
.class-three, .class-four, .class-five .class-six {
background: red;
outline: 3px solid red;
padding: 12px;
margin: 24px; }
.class-one {
background: red;
outline: 3px solid red;
padding: 12px;
margin: 24px; }
.another-two {
background: red;
outline: 3px solid red;
padding: 12px;
margin: 24px; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment