vim-snippets/snippets/scss.snippets

45 lines
584 B
Plaintext
Raw Permalink Normal View History

2015-09-21 18:13:23 -04:00
extends css
2014-10-11 08:35:51 -04:00
snippet $
$${1:variable}: ${0:value};
snippet imp
@import '${0}';
snippet mix
@mixin ${1:name}(${2}) {
${0}
}
snippet inc
@include ${1:mixin}(${2});
snippet ext
2014-10-11 08:35:51 -04:00
@extend ${0};
snippet fun
@function ${1:name}(${2:args}) {
${0}
}
snippet if
@if ${1:condition} {
${0}
}
2014-12-03 06:31:01 -05:00
snippet ife
@if ${1:condition} {
${2}
} @else {
${0}
}
2014-12-03 06:32:03 -05:00
snippet eif
@else if ${1:condition} {
2014-10-11 08:35:51 -04:00
${0}
}
snippet for
@for ${1:$i} from ${2:1} through ${3:3} {
${0}
}
snippet each
@each ${1:$item} in ${2:items} {
${0}
}
snippet while
@while ${1:$i} ${2:>} ${3:0} {
${0}
}