Created
June 28, 2015 01:49
-
-
Save rw1982/36d01f336e85c5c0ed18 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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