Permalink
Browse files

Add snippets

  • Loading branch information...
0 parents commit 6096ebfb7bf25d7c8200869d2c13f2a973765e9b @mrmartineau committed Jan 12, 2013
Showing with 237 additions and 0 deletions.
  1. +10 −0 SCSS/@each.sublime-snippet
  2. +6 −0 SCSS/@extend.sublime-snippet
  3. +8 −0 SCSS/@for.sublime-snippet
  4. +8 −0 SCSS/@function.sublime-snippet
  5. +12 −0 SCSS/@if-else-if.sublime-snippet
  6. +10 −0 SCSS/@if-else.sublime-snippet
  7. +8 −0 SCSS/@if.sublime-snippet
  8. +6 −0 SCSS/@import.sublime-snippet
  9. +6 −0 SCSS/@include.sublime-snippet
  10. +8 −0 SCSS/@mixin.sublime-snippet
  11. +11 −0 SCSS/@while.sublime-snippet
  12. +6 −0 functions/hsl/adjust-hue.sublime-snippet
  13. +6 −0 functions/hsl/complement.sublime-snippet
  14. +6 −0 functions/hsl/darken.sublime-snippet
  15. +6 −0 functions/hsl/desaturate.sublime-snippet
  16. +6 −0 functions/hsl/grayscale.sublime-snippet
  17. +6 −0 functions/hsl/hsl.sublime-snippet
  18. +6 −0 functions/hsl/hsla.sublime-snippet
  19. +6 −0 functions/hsl/invert.sublime-snippet
  20. +6 −0 functions/hsl/lighten.sublime-snippet
  21. +6 −0 functions/hsl/saturate.sublime-snippet
  22. +6 −0 functions/number/abs.sublime-snippet
  23. +6 −0 functions/number/ceil.sublime-snippet
  24. +6 −0 functions/number/floor.sublime-snippet
  25. +6 −0 functions/number/max.sublime-snippet
  26. +6 −0 functions/number/min.sublime-snippet
  27. +6 −0 functions/number/percentage.sublime-snippet
  28. +6 −0 functions/number/round.sublime-snippet
  29. +6 −0 functions/opacity/fade-in.sublime-snippet
  30. +6 −0 functions/opacity/fade-out.sublime-snippet
  31. +6 −0 functions/opacity/opacify.sublime-snippet
  32. +6 −0 functions/opacity/rgba.sublime-snippet
  33. +6 −0 functions/opacity/transparentize.sublime-snippet
  34. +6 −0 functions/string/quote.sublime-snippet
  35. +6 −0 functions/string/unquote.sublime-snippet
@@ -0,0 +1,10 @@
+<snippet>
+ <content><![CDATA[@each \$${1:var} in ${2:item1, item2, item3} {
+ .#{$1}$3 {
+ $4
+ }
+}$0]]></content>
+ <tabTrigger>each</tabTrigger>
+ <description>@each</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[@extend $0;]]></content>
+ <tabTrigger>extend</tabTrigger>
+ <description>@extend</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[@for \$i from ${1:1} to ${2:10} {
+ $3
+}$0]]></content>
+ <tabTrigger>for</tabTrigger>
+ <description>@for</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[@function $1($3) {
+ $4
+}$0]]></content>
+ <tabTrigger>function</tabTrigger>
+ <description>@function</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,12 @@
+<snippet>
+ <content><![CDATA[@if ${1:something} ${2:==} ${3:true/false} {
+ $4
+} @else if {
+ $5
+}${6: @else {
+ $7
+\}}$0]]></content>
+ <tabTrigger>if</tabTrigger>
+ <description>@if @else if</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,10 @@
+<snippet>
+ <content><![CDATA[@if ${1:something} ${2:==} ${3:true/false} {
+ $4
+} @else {
+ $5
+}$0]]></content>
+ <tabTrigger>if</tabTrigger>
+ <description>@if @else</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[@if ${1:something} ${2:==} ${3:true/false} {
+ $4
+}$0]]></content>
+ <tabTrigger>if</tabTrigger>
+ <description>@if</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[@import "$0";]]></content>
+ <tabTrigger>import</tabTrigger>
+ <description>@import</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[@include $0;]]></content>
+ <tabTrigger>include</tabTrigger>
+ <description>@include</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[@mixin $1($2) {
+ $3
+}$0]]></content>
+ <tabTrigger>mixin</tabTrigger>
+ <description>@mixin</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,11 @@
+<snippet>
+ <content><![CDATA[\$i:${1:10};
+@while \$i > ${2:8} {
+ .#{\$i}$3 {
+ $4
+ }
+}$0]]></content>
+ <tabTrigger>while</tabTrigger>
+ <description>@while</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[adjust-hue(${1:#811}, ${2:45deg})$0]]></content>
+ <tabTrigger>adjust-hue</tabTrigger>
+ <description>adjust-hue</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[complement(${1:#000}, ${2:10%})$0]]></content>
+ <tabTrigger>complement</tabTrigger>
+ <description>complement</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[darken(${1:#ddd}, ${2:10%})$0]]></content>
+ <tabTrigger>darken</tabTrigger>
+ <description>darken</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[desaturate(${1:#000}, ${2:10%})$0]]></content>
+ <tabTrigger>desaturate</tabTrigger>
+ <description>desaturate</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[grayscale(${1:blue})$0]]></content>
+ <tabTrigger>grayscale</tabTrigger>
+ <description>grayscale</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[hsl(${1:255}, ${2:0}, ${3:0})$0]]></content>
+ <tabTrigger>hsl</tabTrigger>
+ <description>hsl</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[hsla(${1:255}, ${2:0}, ${3:0}, ${4:0.7})$0]]></content>
+ <tabTrigger>hsla</tabTrigger>
+ <description>hsla</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[invert(${1:#000}, ${2:10%})$0]]></content>
+ <tabTrigger>invert</tabTrigger>
+ <description>invert</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[lighten(${1:#000}, ${2:10%})$0]]></content>
+ <tabTrigger>lighten</tabTrigger>
+ <description>lighten</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[saturate(${1:#eee}, ${2:10%})$0]]></content>
+ <tabTrigger>saturate</tabTrigger>
+ <description>saturate</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[abs(${1:10px})$0]]></content>
+ <tabTrigger>abs</tabTrigger>
+ <description>abs</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[ceil($1)$0]]></content>
+ <tabTrigger>ceil</tabTrigger>
+ <description>ceil</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[floor($1)$0]]></content>
+ <tabTrigger>floor</tabTrigger>
+ <description>floor</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[max($1)$0]]></content>
+ <tabTrigger>max</tabTrigger>
+ <description>max</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[min(${1:$1})$0]]></content>
+ <tabTrigger>min</tabTrigger>
+ <description>min</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[percentage(${1:100px / 50px})$0]]></content>
+ <tabTrigger>percentage</tabTrigger>
+ <description>percentage</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[round($1)$0]]></content>
+ <tabTrigger>round</tabTrigger>
+ <description>round</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[fade-in(${1:rgba(0, 0, 0, 0.5)}, ${2:0.1})$0]]></content>
+ <tabTrigger>fade-in</tabTrigger>
+ <description>fade-in</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[fade-out(${1:rgba(0, 0, 0, 0.5)}, ${2:0.1})$0]]></content>
+ <tabTrigger>fade-out</tabTrigger>
+ <description>fade-out</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[opacify(${1:rgba(0, 0, 0, 0.5)}, ${2:0.1})$0]]></content>
+ <tabTrigger>opacify</tabTrigger>
+ <description>opacify</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[rgba(${1:#999}, ${2:0.4})$0]]></content>
+ <tabTrigger>rgba</tabTrigger>
+ <description>rgba</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[transparentize(${1:rgba(0, 0, 0, 0.5)}, ${2:0.1})$0]]></content>
+ <tabTrigger>transparentize</tabTrigger>
+ <description>transparentize</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[quote(${1:string})$0]]></content>
+ <tabTrigger>quote</tabTrigger>
+ <description>quote</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[unquote(${1:string})$0]]></content>
+ <tabTrigger>unquote</tabTrigger>
+ <description>unquote</description>
+ <scope>source.scss, source.sass</scope>
+</snippet>

0 comments on commit 6096ebf

Please sign in to comment.