Skip to content

Instantly share code, notes, and snippets.

@neekey
Created September 20, 2012 14:36
Show Gist options
  • Save neekey/3756302 to your computer and use it in GitHub Desktop.
Save neekey/3756302 to your computer and use it in GitHub Desktop.
Simple LESS to SASS
// 所有的mixin
^\s*\.([\w\s-_]*\s*\([\s\$,\w-_\:]*\)\s*\{) --> @mixin $1
// 所有对于mixin的调用
^\s*\.([\w-_]*\(.*\);) --> @include $1;
// 所有不需要参数的mixin
^\s*(\.[\w-_]*;) --> @extend $1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment