Skip to content

Instantly share code, notes, and snippets.

@angelbotto
Created January 2, 2014 21:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save angelbotto/8226955 to your computer and use it in GitHub Desktop.
Save angelbotto/8226955 to your computer and use it in GitHub Desktop.
less to scss
1. replace @ with $
Find: @
Replace: $
2. replace mixins
Find: \.([\w\-]*)\s*\((.*)\)\s*\{
Replace: @mixin \1\(\2\)\n{
3. replace includes
Find: \.([\w\-]*\(.*\)\s*;)
Replace: @include \1
4. replace string literals
Find: ~"(.*)"
Replace: #{"\1"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment