Skip to content

Instantly share code, notes, and snippets.

@billsuxx
Created November 2, 2016 15:41
Show Gist options
  • Save billsuxx/7bcfbd5351e59e3a725df1c132e62502 to your computer and use it in GitHub Desktop.
Save billsuxx/7bcfbd5351e59e3a725df1c132e62502 to your computer and use it in GitHub Desktop.
generateCssProperty with less
.generateCssProperty(@property,@value,@valueMobile,@breakpoint: 'sm') {
@mediaquery: 'screen-@{breakpoint}';
-:~";@{property}: @{value};";
@media(max-width: @@mediaquery) {
-:~";@{property}: @{valueMobile};";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment