mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Markup pseudo-selector as code
Other similar items in the surrounding text use code markup, so this feels like it should do too.
This commit is contained in:
@@ -369,7 +369,7 @@ It is possible that several selectors match a given widget. If the same style is
|
|||||||
|
|
||||||
- The selector with the most IDs wins. For instance `#next` beats `.button` and `#dialog #next` beats `#next`. If the selectors have the same number of IDs then move to the next rule.
|
- The selector with the most IDs wins. For instance `#next` beats `.button` and `#dialog #next` beats `#next`. If the selectors have the same number of IDs then move to the next rule.
|
||||||
|
|
||||||
- The selector with the most class names wins. For instance `.button.success` beats `.success`. For the purposes of specificity, pseudo classes are treated the same as regular class names, so ".button:hover" counts as _2_ class names. If the selectors have the same number of class names then move to the next rule.
|
- The selector with the most class names wins. For instance `.button.success` beats `.success`. For the purposes of specificity, pseudo classes are treated the same as regular class names, so `.button:hover` counts as _2_ class names. If the selectors have the same number of class names then move to the next rule.
|
||||||
|
|
||||||
- The selector with the most types wins. For instance `Container Button` beats `Button`.
|
- The selector with the most types wins. For instance `Container Button` beats `Button`.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user