Skip to content

Instantly share code, notes, and snippets.

@pieterbeulque
Created March 13, 2015 13:58
Show Gist options
  • Save pieterbeulque/ed074035a7fa34592510 to your computer and use it in GitHub Desktop.
Save pieterbeulque/ed074035a7fa34592510 to your computer and use it in GitHub Desktop.
Changing SCSS transform: to @include transform

When working with Autoprefixer, you get used to writing prefixless SCSS.

If you discover you've been working in a Compass / Bourbon project without Autoprefixer and you can't add it, do this magical find and replace:

Find: ^(\s+)transform:(.+); Replace: $1@include transform($2);

This will update all transform: transform1, transform2; to @include transform(transform1, transform2);, keeping your indentation intact.

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