Skip to content

Instantly share code, notes, and snippets.

@kizu
Created April 23, 2014 15:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kizu/11220764 to your computer and use it in GitHub Desktop.
Save kizu/11220764 to your computer and use it in GitHub Desktop.
replace-in-selector($what, $with = '')
/{replace($what, $with , selector())}
{block}
root-selector()
+replace-in-selector('^(\S+).*', '$1')
{block}
.foo
.bar
test: selector()
+root-selector()
width: 10px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment