Last active
June 1, 2022 23:35
-
-
Save vladkrasovsky/d77517aa0979470e6ee00e251797c553 to your computer and use it in GitHub Desktop.
VS Code Snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"CSS rules declaration order": { | |
"prefix": "do", | |
"body": [ | |
".${1:class-name} {", | |
"/* Positioning (position, top, left, z-inx..) */", | |
" $2", | |
"/* Box-model (display, width, height..) */", | |
" $3", | |
"/* Typography (font, line-height, color..) */", | |
" $4", | |
"/* Visual (bg, border..) */", | |
" $5", | |
"/* Misc (opacity..) */", | |
" $6", | |
"}" | |
], | |
"description": "CSS rules order" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"SVG Use": { | |
"prefix": "svg-use", | |
"body": [ | |
"<svg width=\"${1:20}\" height=\"${2:20}\" >", | |
" <use href=\"./images/icons.svg#icon-$3\" />", | |
"</svg>" | |
], | |
"description": "SVG use markup template" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment