Skip to content

Instantly share code, notes, and snippets.

@markcarrrr
Created July 25, 2014 13:02
Show Gist options
  • Save markcarrrr/0779320e23b176ee9a03 to your computer and use it in GitHub Desktop.
Save markcarrrr/0779320e23b176ee9a03 to your computer and use it in GitHub Desktop.
LESS calc() mixin
.widthCalc(@width, @minus) {
width: ~"-webkit-calc(@{width} - @{minus})";
width: ~"calc(@{width} - @{minus})";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment