Last active
August 29, 2015 13:56
-
-
Save jhned/9233425 to your computer and use it in GitHub Desktop.
Snippets for CSS pseudo-elements.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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