Skip to content

Commit eb291ec

Browse files
committed
Add CSS Gradient snippet.
1 parent 0dfc06e commit eb291ec

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

extensions/css/snippets/css.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,15 @@
1414
"border: ${width} ${border-style} ${color};$0"
1515
],
1616
"description": "[width] [border-style] [color]"
17+
},
18+
"gradient": {
19+
"prefix": "gradient",
20+
"body": [
21+
"background-image: -moz-linear-gradient(top, ${start-color}, ${end-color});",
22+
"background-image: -webkit-gradient(linear, left top, left bottom, from(${start-color}), to(${end-color}));",
23+
"background-image: -webkit-linear-gradient(top, ${start-color}, ${end-color});",
24+
"background-image: linear-gradient(top, ${start-color}, ${end-color});"
25+
],
26+
"description": "Set the 'background-image' property to a linear gradient"
1727
}
18-
}
28+
}

0 commit comments

Comments
 (0)