vim-snippets/UltiSnips/scss.snippets

58 lines
874 B
Plaintext
Raw Normal View History

extends css
priority -50
snippet imp "@import '...';" b
@import '${1:file}';
endsnippet
snippet inc "@include mixin(...);" b
2014-10-11 08:35:51 -04:00
@include ${1:mixin}(${2});
endsnippet
snippet ext "@extend %placeholder;" b
2014-10-11 08:35:51 -04:00
@extend %${1:%placeholder};
endsnippet
snippet mixin "@mixin (...) { ... }" b
2014-10-11 08:35:51 -04:00
@mixin ${1:name}(${2}) {
${VISUAL}$0
}
endsnippet
snippet fun "@function (...) { ... }" b
2014-10-11 08:35:51 -04:00
@function ${1:name}(${2}) {
${VISUAL}$0
}
endsnippet
snippet if "@if (...) { ... }" b
@if ${1:condition} {
${VISUAL}$0
}
endsnippet
snippet else "@else { ... }" b
@else ${1:condition} {
${VISUAL}$0
}
endsnippet
snippet for "@for loop" b
@for ${1:$i} from ${2:1} through ${3:3} {
${VISUAL}$0
}
endsnippet
snippet each "@each loop" b
@each ${1:$item} in ${2:item, item, item} {
${VISUAL}$0
}
endsnippet
snippet while "@while loop" b
@while ${1:$i} ${2:>} ${3:0} {
${VISUAL}$0
}
endsnippet