css: clarify pseudo-selector args

This commit is contained in:
Rico Sta. Cruz 2017-08-31 17:30:02 +08:00
parent 6a3b10946a
commit 2d70bccc5e
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 7 additions and 7 deletions

14
css.md
View File

@ -59,22 +59,22 @@ weight: -1
| `:nth-child(3n+2)` | 2nd child in groups of 3 |
| `:nth-child(-n+4)` | |
| --- | --- |
| `:nth-last-child(···)` | |
| `:nth-of-type(···)` | |
| `:nth-last-child(2)` | |
| `:nth-of-type(2)` | |
| --- | --- |
### Pseudo-class variations
| Selector |
| --- |
| `:first-of-type(···)` |
| `:last-of-type(···)` |
| `:nth-of-type(···)` |
| `:only-of-type(···)` |
| `:first-of-type` |
| `:last-of-type` |
| `:nth-of-type(2)` |
| `:only-of-type` |
| --- |
| `:first-child` |
| `:last-child` |
| `:nth-child(···)` |
| `:nth-child(2)` |
| `:only-child` |
{: .-left-align}