Skip to content

Instantly share code, notes, and snippets.

@kbav
Forked from zumwalt/calc() mixin for less
Last active December 30, 2015 22:08
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 kbav/7891881 to your computer and use it in GitHub Desktop.
Save kbav/7891881 to your computer and use it in GitHub Desktop.
.calc(@expression) {
width: -webkit-calc(@expression);
width: -moz-calc(@expression);
width: calc(@expression);
}
.calc(~"100% - 95px");
@kbav
Copy link
Author

kbav commented Dec 10, 2013

Updated to remove the unneccessary -o- prefix, + some picky spacing changes (not sure why GitHub isn't saving my tab preference of 4 spaces...)

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