added css center snippet in vscode
This commit is contained in:
parent
c78b4c64e4
commit
3a4a8e97c9
14
.config/Code - OSS/User/snippets/css.json
Normal file
14
.config/Code - OSS/User/snippets/css.json
Normal file
@ -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%);"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
14
.config/Code - OSS/User/snippets/scss.json
Normal file
14
.config/Code - OSS/User/snippets/scss.json
Normal file
@ -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%);"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user