Last active
August 29, 2015 14:27
-
-
Save finteractive/149eed451d4aa0d756ea to your computer and use it in GitHub Desktop.
Understanding placeholder selectors (Generated by SassMeister.com)
This file contains hidden or 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) | |
// ---- | |
/* | |
Source: http://thesassway.com/intermediate/understanding-placeholder-selectors | |
Topic: Understanding placeholder selectors | |
*/ | |
@mixin icon { | |
transition: background-color ease .2s; | |
margin: 0 .5em; | |
} | |
.error-icon { | |
@include icon; | |
/* error specific styles... */ | |
} | |
.info-icon { | |
@include icon; | |
/* info specific styles... */ | |
} |
This file contains hidden or 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
/* | |
Source: http://thesassway.com/intermediate/understanding-placeholder-selectors | |
Topic: Understanding placeholder selectors | |
*/ | |
.error-icon { | |
transition: background-color ease 0.2s; | |
margin: 0 0.5em; | |
/* error specific styles... */ | |
} | |
.info-icon { | |
transition: background-color ease 0.2s; | |
margin: 0 0.5em; | |
/* info specific styles... */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment