SCSS snipmate snippes
This commit is contained in:
parent
3216ac221e
commit
e2bd41af02
@ -7,21 +7,21 @@ snippet imp "@import '...';" b
|
|||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet inc "@include mixin(...);" b
|
snippet inc "@include mixin(...);" b
|
||||||
@include ${1:mixin}(${2:arguments});
|
@include ${1:mixin}(${2});
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet ext "@extend %placeholder;" b
|
snippet ext "@extend %placeholder;" b
|
||||||
@extend %${1:placeholder};
|
@extend %${1:%placeholder};
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet mixin "@mixin (...) { ... }" b
|
snippet mixin "@mixin (...) { ... }" b
|
||||||
@mixin ${1:name}(${2:arguments}) {
|
@mixin ${1:name}(${2}) {
|
||||||
${VISUAL}$0
|
${VISUAL}$0
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet fun "@function (...) { ... }" b
|
snippet fun "@function (...) { ... }" b
|
||||||
@function ${1:name}(${2:arguments}) {
|
@function ${1:name}(${2}) {
|
||||||
${VISUAL}$0
|
${VISUAL}$0
|
||||||
}
|
}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
36
snippets/scss.snippets
Normal file
36
snippets/scss.snippets
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
snippet $
|
||||||
|
$${1:variable}: ${0:value};
|
||||||
|
snippet imp
|
||||||
|
@import '${0}';
|
||||||
|
snippet mix
|
||||||
|
@mixin ${1:name}(${2}) {
|
||||||
|
${0}
|
||||||
|
}
|
||||||
|
snippet inc
|
||||||
|
@include ${1:mixin}(${2});
|
||||||
|
snippet ex
|
||||||
|
@extend ${0};
|
||||||
|
snippet fun
|
||||||
|
@function ${1:name}(${2:args}) {
|
||||||
|
${0}
|
||||||
|
}
|
||||||
|
snippet if
|
||||||
|
@if ${1:condition} {
|
||||||
|
${0}
|
||||||
|
}
|
||||||
|
snippet else
|
||||||
|
@else ${1:condition} {
|
||||||
|
${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}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user