Skip to content

Instantly share code, notes, and snippets.

@roytomeij
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roytomeij/b0058afdbf743ae7880c to your computer and use it in GitHub Desktop.
Save roytomeij/b0058afdbf743ae7880c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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;
}
}
}
.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