mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
lua_api.txt: Fix style selector examples
This commit is contained in:
parent
44ed05ddf0
commit
afe988d83d
1 changed files with 6 additions and 6 deletions
|
@ -2679,7 +2679,7 @@ Elements
|
||||||
* `span=<value>`: number of following columns to affect
|
* `span=<value>`: number of following columns to affect
|
||||||
(default: infinite).
|
(default: infinite).
|
||||||
|
|
||||||
### `style[<selector 1>,<selector 2>;<prop1>;<prop2>;...]`
|
### `style[<selector 1>,<selector 2>,...;<prop1>;<prop2>;...]`
|
||||||
|
|
||||||
* Set the style for the element(s) matching `selector` by name.
|
* Set the style for the element(s) matching `selector` by name.
|
||||||
* `selector` can be one of:
|
* `selector` can be one of:
|
||||||
|
@ -2692,7 +2692,7 @@ Elements
|
||||||
* See [Styling Formspecs].
|
* See [Styling Formspecs].
|
||||||
|
|
||||||
|
|
||||||
### `style_type[<selector 1>,<selector 2>;<prop1>;<prop2>;...]`
|
### `style_type[<selector 1>,<selector 2>,...;<prop1>;<prop2>;...]`
|
||||||
|
|
||||||
* Set the style for the element(s) matching `selector` by type.
|
* Set the style for the element(s) matching `selector` by type.
|
||||||
* `selector` can be one of:
|
* `selector` can be one of:
|
||||||
|
@ -2765,10 +2765,10 @@ Styling Formspecs
|
||||||
|
|
||||||
Formspec elements can be themed using the style elements:
|
Formspec elements can be themed using the style elements:
|
||||||
|
|
||||||
style[<name 1>,<name 2>;<prop1>;<prop2>;...]
|
style[<name 1>,<name 2>,...;<prop1>;<prop2>;...]
|
||||||
style[<name 1>:<state>,<name 2>:<state>;<prop1>;<prop2>;...]
|
style[<name 1>:<state>,<name 2>:<state>,...;<prop1>;<prop2>;...]
|
||||||
style_type[<type 1>,<type 2>;<prop1>;<prop2>;...]
|
style_type[<type 1>,<type 2>,...;<prop1>;<prop2>;...]
|
||||||
style_type[<type 1>:<state>,<type 2>:<state>;<prop1>;<prop2>;...]
|
style_type[<type 1>:<state>,<type 2>:<state>,...;<prop1>;<prop2>;...]
|
||||||
|
|
||||||
Where a prop is:
|
Where a prop is:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue