Skip to content

Instantly share code, notes, and snippets.

@nicolechung
Created March 19, 2012 20:17
Show Gist options
  • Save nicolechung/2126495 to your computer and use it in GitHub Desktop.
Save nicolechung/2126495 to your computer and use it in GitHub Desktop.
LESS vs CSS
/* less file */
.my_mixin {
display: block;
text-indent: -9999em;
background-color: transparent;
background-position: 0 0;
background-repeat: no-repeat;
overflow: hidden;
}
h1 a, .pagination em, .cog a {
.my_mixin
}
/* css file */
.my_mixin {
display: block;
text-indent: -9999em;
background-color: transparent;
background-position: 0 0;
background-repeat: no-repeat;
overflow: hidden;
}
h1 a, .pagination em, .cog a {
display: block;
text-indent: -9999em;
background-color: transparent;
background-position: 0 0;
background-repeat: no-repeat;
overflow: hidden;
}
@nicolechung
Copy link
Author

@alliwagner
Copy link

Yes!! Me too. Seems to solve the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment