diff --git a/.config/Code - OSS/User/snippets/css.json b/.config/Code - OSS/User/snippets/css.json new file mode 100644 index 0000000..1f403e9 --- /dev/null +++ b/.config/Code - OSS/User/snippets/css.json @@ -0,0 +1,14 @@ +{ + "Center element": { + "prefix": "center", + "description": "Centers an element absoulte in its center", + "body": [ + "/*Center element*/", + "margin: 0;", + "position: absolute;", + "top: 50%;", + "left: 50%;", + "transform: translate(-50%,-50%);" + ] + } +} \ No newline at end of file diff --git a/.config/Code - OSS/User/snippets/scss.json b/.config/Code - OSS/User/snippets/scss.json new file mode 100644 index 0000000..1f403e9 --- /dev/null +++ b/.config/Code - OSS/User/snippets/scss.json @@ -0,0 +1,14 @@ +{ + "Center element": { + "prefix": "center", + "description": "Centers an element absoulte in its center", + "body": [ + "/*Center element*/", + "margin: 0;", + "position: absolute;", + "top: 50%;", + "left: 50%;", + "transform: translate(-50%,-50%);" + ] + } +} \ No newline at end of file