Instantly share code, notes, and snippets.

Embed
What would you like to do?
Snippets for CSS pseudo-elements.
{
"snippets": {
"css": {
"snippets": {
";bef": ":before {$1}",
";aft": ":after {$1}",
";fch": ":first-child {$1}",
";lch": ":last-child {$1}",
";och": ":only-child {$1}",
";oot": ":only-of-type {$1}",
";fot": ":first-of-type {$1}",
";nch": ":nth-child($1) {$2}",
";nlc": ":nth-last-child($1) {$2}",
";not": ":nth-of-type($1) {$2}",
";nlt": ":nth-last-of-type($1) {$2}"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment