diff --git a/LANGUAGE.md b/LANGUAGE.md index e5852cd4..dbdc76dc 100644 --- a/LANGUAGE.md +++ b/LANGUAGE.md @@ -388,6 +388,37 @@ string. - A file's cascade is its imports' rules, then its own. `` brings a stylesheet in, and one stylesheet can `@import` another, so a look is a file others can use. A library's components keep the styles of the file they were written in. +- **More CSS.** + - Custom properties: `--accent: #fc0` on any element or `:root`, read with `var(--accent)` or + `var(--accent, gold)`, and inherited by what is inside. + - `position: relative|absolute|fixed` with `top`, `right`, `bottom`, `left` and `inset`, and + `z-index`. An absolute element sits in its parent's box, a fixed one in the screen's, and + neither takes room in the flow. + - Units: `em`, `rem`, `vw` and `vh`. + - `@media (min-width: ..) and (max-height: ..) { ... }`. + - Text wraps between words to fit its box; `white-space: nowrap` keeps one line and + `text-overflow: ellipsis` cuts it. + - `overflow: auto|scroll|hidden` makes a box scroll. + - Selectors also take `+` and `~`, `:nth-child(2n+1)`, `:checked` and `:active`. +- **More React.** + - `` keeps an item's state when the list is reordered. + - `` names a value for the siblings after it. + - `` gives a value to everything inside, components included. + - `` groups without a box. + - `` takes the user's `