-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscss.json
69 lines (69 loc) · 1.71 KB
/
scss.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
// These are snippets about CEP.scss for VSCode.
"Convert px to rem unit": {
"prefix": "rem",
"body": "rem($1)",
"description": "Calculate the rem unit with root font size."
},
"Append px unit to a number value": {
"prefix": "px",
"body": "px($1)"
},
"Create control": {
"prefix": "ctrl",
"body": [
"/**",
" * Control: ${1:Control}",
" */",
"@include comp('${2:control}') {",
" $0",
"}"
],
"description": "Create style sheet for a control/component."
},
"Create component": {
"prefix": "comp",
"body": [
"/**",
" * Component: ${1:Control}",
" */",
"@include comp('${2:control}') {",
" $0",
"}"
],
"description": "Create style sheet for a control/component."
},
"Create element": {
"prefix": "elem",
"body": ["@include elem('${1:element}'$2) {", " $0", "}"],
"description": "Create style sheet for elements."
},
"Create when": {
"prefix": "when",
"body": ["@include when('${1:status}'$2) {", " $0", "}"],
"description": "Create style sheet for status."
},
"Create when-or": {
"prefix": "when-or",
"body": ["@include when-or('${1:status}', ${2:status}$3) {", " $0", "}"],
"description": "Create style sheet for status."
},
"Create prop": {
"prefix": "prop",
"body": [
"@include prop(",
" (",
" '${1:property}': $${1:property}$2,$3",
" )",
") {",
" $0",
"}"
],
"description": "Create style sheet for properties."
},
"Create atom": {
"prefix": "atom",
"body": ["@include atom('${1:name}', ${2:null}$3) {", " $0", "}"],
"description": "Create style sheet for atom."
}
}