Last active
August 29, 2015 14:22
-
-
Save roytomeij/b0058afdbf743ae7880c 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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// ---- | |
@mixin limit-to($limit-to...) { | |
@at-root { | |
@each $selector in $limit-to { | |
#{$selector}#{&} { | |
@content; | |
} | |
} | |
} | |
} | |
.button { | |
background-color: red; | |
@include limit-to(button) { | |
&::-moz-focus-inner { | |
margin-top: -4px; | |
padding: 0; | |
border: 0; | |
} | |
} | |
} | |
.button-2 { | |
background-color: red; | |
@include limit-to(button, a) { | |
&::-moz-focus-inner { | |
margin-top: -4px; | |
padding: 0; | |
border: 0; | |
} | |
} | |
} | |
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
.button { | |
background-color: red; | |
} | |
button.button::-moz-focus-inner { | |
margin-top: -4px; | |
padding: 0; | |
border: 0; | |
} | |
.button-2 { | |
background-color: red; | |
} | |
button.button-2::-moz-focus-inner { | |
margin-top: -4px; | |
padding: 0; | |
border: 0; | |
} | |
a.button-2::-moz-focus-inner { | |
margin-top: -4px; | |
padding: 0; | |
border: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment