Skip to content

Instantly share code, notes, and snippets.

@jhned
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhned/9233425 to your computer and use it in GitHub Desktop.
Save jhned/9233425 to your computer and use it in GitHub Desktop.
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