diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md
index a04275ab..05b3b160 100644
--- a/resources/docs/docs/widgets/properties-reference.md
+++ b/resources/docs/docs/widgets/properties-reference.md
@@ -30,16 +30,7 @@
|
alphaFillOff
| `number` | "auto" | Fill color opacity (off). |
| alphaFillOn
| `number` | "auto" | Fill color opacity (on). |
| padding
| `number` | "auto" | Inner spacing. |
-| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
-
- `--color-fill`: `colorFill`
-
- `--color-stroke`: `colorStroke`
-
- `--color-text`: `colorText`
-
- `--color-background`: `colorPanel`
-
- `--widget-padding`: `padding`
-
- `--alpha-fill-on`: `alphaFillOn`
-
- `--alpha-fill-off`: `alphaFillOff`
-
- `--alpha-stroke`: `alphaStroke`
-|
+| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke` |
| value
||||
| value
| `*` | "" | Define the widget's value depending on other widget's values / properties using the advanced property syntax |
| default
| `*` | "" | If set, the widget will be initialized with this value when the session is loaded. |
@@ -65,17 +56,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
| ||||
-| | `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
-
- `--color-fill`: `colorFill`
-
- `--color-stroke`: `colorStroke`
-
- `--color-text`: `colorText`
-
- `--color-background`: `colorPanel`
-
- `--widget-padding`: `padding`
-
- `--alpha-fill-on`: `alphaFillOn`
-
- `--alpha-fill-off`: `alphaFillOff`
-
- `--alpha-stroke`: `alphaStroke`
-
- `--color-text-on`: `colorTextOn`
-|
+| | `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` |
| ||||
| | `*` | 1 | Set to `null` to send send no argument in the osc message |
| | `*` | 0 | Set to `null` to send send no argument in the osc message. Must be different from `on`. |
@@ -94,17 +75,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
| style
||||
-| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
-
- `--color-fill`: `colorFill`
-
- `--color-stroke`: `colorStroke`
-
- `--color-text`: `colorText`
-
- `--color-background`: `colorPanel`
-
- `--widget-padding`: `padding`
-
- `--alpha-fill-on`: `alphaFillOn`
-
- `--alpha-fill-off`: `alphaFillOff`
-
- `--alpha-stroke`: `alphaStroke`
-
- `--color-text-on`: `colorTextOn`
-|
+| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` |
| switch
||||
| layout
| `string` | "vertical" | Choices: `vertical`, `horizontal`, `grid` |
| gridTemplate
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
@@ -590,18 +561,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
| style
||||
-| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
-
- `--color-fill`: `colorFill`
-
- `--color-stroke`: `colorStroke`
-
- `--color-text`: `colorText`
-
- `--color-background`: `colorPanel`
-
- `--widget-padding`: `padding`
-
- `--alpha-fill-on`: `alphaFillOn`
-
- `--alpha-fill-off`: `alphaFillOff`
-
- `--alpha-stroke`: `alphaStroke`
-
- `--alpha-pips`: `alphaPips`
-
- `--alpha-pips-text`: `alphaPipsText`
-|
+| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` |
| fader
||||
| design
| `string` | "default" | Design style
Choices: `default`, `round`, `compact` |
| horizontal
| `boolean` | false | Set to `true` to display the fader horizontally |
@@ -630,18 +590,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
| style
||||
-| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
-
- `--color-fill`: `colorFill`
-
- `--color-stroke`: `colorStroke`
-
- `--color-text`: `colorText`
-
- `--color-background`: `colorPanel`
-
- `--widget-padding`: `padding`
-
- `--alpha-fill-on`: `alphaFillOn`
-
- `--alpha-fill-off`: `alphaFillOff`
-
- `--alpha-stroke`: `alphaStroke`
-
- `--alpha-pips`: `alphaPips`
-
- `--alpha-pips-text`: `alphaPipsText`
-|
+| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` |
| knob
||||
| mode
| `string` | "vertical" | - `circular`: relative move in circular motion
- `snap`: snap to touch position and move in vertical motion
- `vertical`: relative move in vertical motion
Choices: `vertical`, `circular`, `snap` |
| spring
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released |
@@ -688,18 +637,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
| style
||||
-| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
-
- `--color-fill`: `colorFill`
-
- `--color-stroke`: `colorStroke`
-
- `--color-text`: `colorText`
-
- `--color-background`: `colorPanel`
-
- `--widget-padding`: `padding`
-
- `--alpha-fill-on`: `alphaFillOn`
-
- `--alpha-fill-off`: `alphaFillOff`
-
- `--alpha-stroke`: `alphaStroke`
-
- `--alpha-pips`: `alphaPips`
-
- `--alpha-pips-text`: `alphaPipsText`
-|
+| css
| `string` | "" | CSS rules. See documentation.
Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` |
| fader
||||
| design
| `string` | "default" | Design style
Choices: `default`, `round`, `compact` |
| horizontal
| `boolean` | false | Set to `true` to display the fader horizontally |
diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js
index 7230a00b..1e1252c1 100644
--- a/src/client/widgets/common/widget.js
+++ b/src/client/widgets/common/widget.js
@@ -91,7 +91,7 @@ class Widget extends EventEmitter {
css: {type: 'string', value: '', help: [
'CSS rules. See documentation.',
'Available css variables:',
- ...Class.cssVariables.map(x=>'- `' + x.css + '`: `' + x.js + '`\n')
+ ...Class.cssVariables.map(x=>'- `' + x.css + '`: `' + x.js + '`')
]},
_value: 'value',