docs: css variables
This commit is contained in:
parent
e1918a3e0d
commit
ac32cd8d00
8 changed files with 94 additions and 17 deletions
|
|
@ -33,7 +33,7 @@ class Button extends Widget {
|
|||
doubleTap: {type: 'boolean', value: false, help: 'Set to `true` to make the button require a double tap to be pushed instead of a single tap'},
|
||||
colorTextOn: {type: 'string', value: 'auto', help: 'Defines the widget\'s text color when active.'},
|
||||
|
||||
})
|
||||
}, [], {}, Button)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class Switch extends MenuBase {
|
|||
]},
|
||||
colorTextOn: {type: 'string', value: 'auto', help: 'Defines the widget\'s text color when active.'},
|
||||
|
||||
})
|
||||
}, [], {}, Switch)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class Widget extends EventEmitter {
|
|||
|
||||
}
|
||||
|
||||
static defaults(insert={}, except=[], push={}) {
|
||||
static defaults(insert={}, except=[], push={}, Class=Widget) {
|
||||
|
||||
var defaults = {
|
||||
|
||||
|
|
@ -88,7 +88,11 @@ class Widget extends EventEmitter {
|
|||
|
||||
|
||||
|
||||
css: {type: 'string', value: '', help: 'CSS rules. See <a href="https://openstagecontrol.ammd.net/docs/css-tips/">documentation</a>.'},
|
||||
css: {type: 'string', value: '', help: [
|
||||
'CSS rules. See <a href="https://openstagecontrol.ammd.net/docs/customization/css-tips/">documentation</a>.',
|
||||
'Available css variables:',
|
||||
...Class.cssVariables.map(x=>'- `' + x.css + '`: `' + x.js + '`\n')
|
||||
]},
|
||||
|
||||
_value: 'value',
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ module.exports = class Fader extends Slider {
|
|||
|
||||
touchAddress: {type: 'string', value:'', help: 'OSC address for touched state messages: `/touchAddress [preArgs] 0/1`'},
|
||||
|
||||
})
|
||||
}, Fader)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ module.exports = class Knob extends Slider {
|
|||
|
||||
touchAddress: {type: 'string', value:'', help: 'OSC address for touched state messages: `/touchAddress [preArgs] 0/1`'},
|
||||
|
||||
})
|
||||
}, Knob)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue