Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daveredfern/4f4f48146ab7b9ffa636 to your computer and use it in GitHub Desktop.
Save daveredfern/4f4f48146ab7b9ffa636 to your computer and use it in GitHub Desktop.
Example of using Calc with SASS variables
$spacing = 1rem;
.column {
width: calc(20% - #{$spacing});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment