Skip to content

Commit d1da94b

Browse files
author
Sergi Pons Freixes
committed
Add documentation for first-child and last-child pseudo-classes
1 parent f59af27 commit d1da94b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guide/CSS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,12 @@ Here are some other pseudo classes:
343343
- `:disabled` Matches widgets which are in a disabled state.
344344
- `:enabled` Matches widgets which are in an enabled state.
345345
- `:even` Matches a widget at an evenly numbered position within its siblings.
346+
- `:first-child` Matches a widget that is the first amongst its siblings.
346347
- `:first-of-type` Matches a widget that is the first of its type amongst its siblings.
347348
- `:focus-within` Matches widgets with a focused child widget.
348349
- `:focus` Matches widgets which have input focus.
349350
- `:inline` Matches widgets when the app is running in inline mode.
351+
- `:last-child` Matches a widget that is the last amongst its siblings.
350352
- `:last-of-type` Matches a widget that is the last of its type amongst its siblings.
351353
- `:light` Matches widgets in light themes (where `App.theme.dark == False`).
352354
- `:odd` Matches a widget at an oddly numbered position within its siblings.

0 commit comments

Comments
 (0)