Skip to content

Instantly share code, notes, and snippets.

@koenpunt
Last active December 2, 2015 22:54
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 koenpunt/3cbb78532e47e4f18257 to your computer and use it in GitHub Desktop.
Save koenpunt/3cbb78532e47e4f18257 to your computer and use it in GitHub Desktop.
Sass mixins to plain CSS

Some regular expressions to replace mixins for plain CSS

# search
@include (transition|transform|opacity|backface-visibility|box-sizing|box-shadow|user-select|background(?:-image)?)\((.*)\)
# replace
$1: $2

# search
@include (translate3d|rotate|translateX|translateY)\((.*)\)
# replace
transform: $1($2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment