From 3a4a8e97c9580d4fcb20f9b98a80e31f61dacde1 Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 17 Jul 2020 18:29:20 +0200 Subject: [PATCH] added css center snippet in vscode --- .config/Code - OSS/User/snippets/css.json | 14 ++++++++++++++ .config/Code - OSS/User/snippets/scss.json | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .config/Code - OSS/User/snippets/css.json create mode 100644 .config/Code - OSS/User/snippets/scss.json 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